• 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
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published Monday in Jira Software

How large do you think Jira Software can grow?

Hi Atlassian Community! My name is Shana, and I’m on the Jira Software team. One of the many reasons this Community exists is to connect you to others on similar product journeys or with comparabl...

700 views 6 13
Read article

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