How to show a field based on the value of another field?

Hi,

I'm working on a small addition to an issue type for someone and ideally it would be be good to be able to show additional fields based on the value of another field.

So I have 4 single choice drop-down fields: Area, sub-area 1, sub-area 2 and sub-area 3.

I would like to show sub-area 1 if the value of area isn't "None" and so on. Is there a way to easily do this?

Thanks

4 answers

Hi Tom,

You can do this using the Power Scripts add-on, which can also do countless other things you will likely want to do with Jira.

Here is a video tutorial walking you through how to show and hide custom fields based on selection in another field.

I hope this helps!

0 vote
Tarun Sapra Community Champion Nov 22, 2017

Hello @Tom Bailey

JIRA out of the box doesn't support such manipulation of fields (show/hide). Easiest way to do it is to use "behaviour plugin" which is part of script runner plugin.

https://scriptrunner.adaptavist.com/4.3.1/jira/behaviours-overview.html

Some examples here -

https://scriptrunner.adaptavist.com/4.3.1/jira/behaviours-overview.html#_hidden_fields

0 vote
Suhas Patil Community Champion Nov 22, 2017

Hi,

Have a look at "Cascading Select list" custom field type, that might fulfil your needs. It allows you to configure two level select options. 

Ex. For parent 'Value 1', there could be multiple select options a, b c etc.. for 'Value 2' there could be different options x, y, z etc and so on..

This won't be useful in this instance as cascading can only have 2 lists, thanks anyway though.

Hello,

please try the custom fields "Select List (Cascading)" field type in your project-config menu

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Julia Dillon
Posted Tuesday in Jira

Tell us how your team runs on Jira!

Hey Atlassian Community! Today we are launching a bunch of customer stories about the amazing work teams, like Dropbox and Twilio, are doing with Jira. You can check out the stories here. The thi...

741 views 1 18
Join discussion

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