On selection of dropdown value how to make visible another field (dropdown)?

Hi Folks,

Can somebody help me on this.

I have a create issue screen with some fields. I would like to make it visible new field based on another drown down value selection.

Appreciate your kind response.



5 answers


You cannot make the field visible invisible based on other field selection by default.

You can make the field mandatory based on the field value selected though. This you can achieve by doing some java script in the description field of the target field.

Another possiblility is to write a validator using the script runner plugin that checks the source field for value and then makes sure target field is filled.


Thanks for your prompt response. I have tried adding the below script on my second field(the one I want to make visible based on first dropdown selection) description.

First custom field ID - customFieldId=10000

Second custom field ID - customFieldId=10004

Is that the right way to add the script? Could you someone guide me how to add script on custom fields?

<script type="text/javascript">
jQuery(document).ready(function($) {
JIRA.bind(JIRA.Events.NEW_CONTENT_ADDED, function (e, context) {
function callChangeFunction(){
// dropdown custom field change function
$("#customFieldId=10004").change(function() {

function showHidField(){
//drop down field selected value
var dropDownFieldval = $.trim($("#customFieldId=10000 :selected").text());
//test field1
//test field2
if(dropDownFieldval == 'video'){





I tried with the suggested options. Unfortunately it is not working. I'm using JIRA 6.2.7 verion. Will it be a problem? Is there any work around for version specified?


Hi Friends,

My requirements will explain in detail.

On create issue screen, I want to hide the custom dropdown in the form dynamically (I would like to make it visible new field based on another drown down value selection). Hence I tried some JavaScript on the target custom field description portion as you mentioned above. Unfortunately the JavaScript is not working at all. Could you please let me know what was the reason? Also help me to guide on the right direction to achieve the same.

Will it possible through JIRA script runner / groovy runner to achieve with build-in script.



If I understand what you are looking for, we use InTenso Dynamic Forms for this. If that's the same as the plugin that was mentioned above, it's worth every penny.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Mar 13, 2019 in Marketplace Apps

Marketplace Spotlight: Marketing apps for Confluence to keep your teams working on the same page


280 views 0 7
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you