Choose a content of field dependent from other fields?

Hi all,

Please it will be possible make this ?

If an issue have a custom field called SubArea and this field is filled with the value "Quality" and too i have a custom field called Classification and this field can be filled with value A or B.

If SubArea=Quality and Classification = A or B , i only can choose in my other custom fileld from the type user picker the names of the quality people. If SubArea or Classification was filled with any other value the user picker is free, i can choose any people.

Thanks in Advance

BR

Fabio

2 answers

1 accepted

0 vote
Mizan Community Champion Jun 10, 2012

I think this is possible using Javascript OR Behaviours Plugin

You will have to check the values in SubArea if it is Quality then remove all the users from the user picker customfield other than some specified users

Below is a JS(works for 4.4) to remove user(option) from the user picker

<script type="text/javascript">
AJS.$("#customfield_xxxxx option").each(function()    {
    if( AJS.$(this).val() == 'USER'){ 
        var m; m=m+1;
      }else{
        AJS.$(this).remove();
    }
    
});
</script>

EDIT : Sorry the above script does not work for customfield but for assignee field

Hi Mizan,

Thanks for your help.

Please, Do you have any scripts that works with custom fields?

Thanks in Advance

BR

Fabio

Hi all,

Please do you have any clue?

Thanks in Advance

BR

Fabio

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 6 hours ago 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...

85 views 4 4
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