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 votes
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 votes
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 Join to answer
Community showcase
Sarah Schuster
Posted Jan 29, 2018 in Jira

What are common themes you've seen across successful & failed Jira Software implementations?

Hey everyone! My name is Sarah Schuster, and I'm a Customer Success Manager in Atlassian specializing in Jira Software Cloud. Over the next few weeks I will be posting discussion topics (8 total) to ...

3,136 views 13 19
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
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot