Adding JavaScript to show/hide field

JIRA comes with tons of functionalities and customizations; however, there are times when you want more control over the behavior of HTML fields. For instance, if you want to show or hide a particular custom field on the basis of a value of another custom field, you can use custom JavaScript to do this.

Let's take a scenario where users who create a ticket in JIRA need to enter their analysis in one of the text areas based on the custom field, but they only need to fill it in when the priority of the issue is highest. Now, in order to achieve this, we want to completely hide the Analysis field first, and display it only when users set Priority as Highest.

Unlike the preceding example for inserting custom CSS, ...

Get Mastering JIRA 7 - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.