• Community
  • Products
  • Jira
  • Questions
  • Need to show/hide options in a select list based on the option selected in the Components field. Required for Jira 4.4.5

Need to show/hide options in a select list based on the option selected in the Components field. Required for Jira 4.4.5

We have a Jira project say "ABC". The project has many Components say ABC1, ABC2, ABC3.
Each Component has a Sub-Component say ABC1-1, ABC1-2, ABC2-1, ABC2-2, ABC2-3, ABC3-1.
The Components are tracked with the help of the system defined field - 'Components' .
To track the SubComponents we have created a custom field of type Multi Select list.
The requirement is to display only those options in the Sub Component field based on the value selected in the Component field.
Please let me know how can this be achieved using the Java script in the description of the SubComponent field.
How can hold the system define field - Components? Is this var Mod = document.getElementById('Components'); ok ??

3 answers

0 vote
Renjith Pillai Community Champion Aug 09, 2012

Rather than trying to mix with the builtin component field, directly use the Multi Level Select itself with the first level as Components name and the second level as sub-components.

Even with javascript involved, you will need the adminsitrator intervention to add options to the field. In that case you case you can directly use the Multi Level Select itself.

Hi Renjith,

Thanks for the quick response.

I can make use of a multi - level select list, but then the components will not be displayed in the Project Summary page and many other pages , if the system defined field is not used for components. And filtering by components would not be easy if it is a custom field.

Anyways thats a good option of using the Cascading Select list . I should create one and check if soves the purpose in all aspects.

Thanks,

Harish.

0 vote
Renjith Pillai Community Champion Aug 09, 2012

Rather than trying to mix with the builtin component field, directly use the Multi Level Select itself with the first level as Components name and the second level as sub-components.

Even with javascript involved, you will need the adminsitrator intervention to add options to the field. In that case you case you can directly use the Multi Level Select itself.

How can I configure a default value in select list type custom field in jira 4.4.5.

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,237 views 14 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