• 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

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.

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 Sign up to answer
Community showcase
Posted Sep 18, 2018 in Jira

What modern development practices are at the heart of how your team delivers software?

Hey Community mates! Claire here from the Software Product Marketing team. We all know software development changes rapidly, and it's often tough to keep up. But from our research, we've found the h...

26,389 views 2 7
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