Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Display a custom field based on the value of a previous field

Aggeliki K
Contributor
May 23, 2025

Hello,

 

I would like a custom field to appear only when a dropdown field has a certain value.

Any suggestions?

 

 

Thank you in advance,

Aggeliki K.

2 answers

3 votes
Nikola Perisic
Community Champion
May 23, 2025

Hello @Aggeliki K 

This should be something that needs to be accomplished by ScriptRunner. Native Jira doesn't support this.

0 votes
Charlotte Santos -Appfire-
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 26, 2025

Hi @Aggeliki K

I’m Charlotte, a support engineer at Appfire and I’m here to help you.

Unfortunately, natively, you’ll not be able to do it.

In the app where my team works, Power Scripts, you can use the feature called Live Fields to do exactly what you are looking for.

In the Live Fields screen, you are able to build you own script. To do what you're expecting I suggest this one:

// Get the field value

var fieldValue = getFieldById("customfield_10628").getValue();

// Check if the object exists AND has the correct ID

if (fieldValue && fieldValue.id === "10177") {

getFieldById("customfield_10127").setVisible(true);

} else {

getFieldById("customfield_10127").setVisible(false);

}
You just need to adjust the custom fields ID to the ones in your instance, and the ID of the value that will be selected in the dropdown field in place of the "10177" in fieldValue.id.
Also, in the Live Fields screen, it's possible to select in which screens, project and issue types you want this action to happen:
Screenshot 2025-05-26 at 13.07.13.png

Please feel free to contact our support if you have any questions about the script I mentioned above, Live Fields, or Power Scripts in general.

We’ll be happy to help you! 😉

Aggeliki K
Contributor
May 27, 2025

Hello @Charlotte Santos -Appfire- 

 

Thank you very much for the information! It was very helpful!

The app seems to cover the need of our organisation.

 

I will come back if needed.

 

Regards,

Aggeliki K.

Aggeliki K
Contributor
May 28, 2025

Hello again @Charlotte Santos -Appfire- ,

 

Just to mention that Live Fields is not yet supported for JSM.

 

Regards,

Aggeliki K.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events