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

Accepted Answer
0 votes
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
Community showcase
Posted Sep 25, 2018 in Jira

Atlassian Research Workshop opportunity on Sep. 28th in Austin, TX

We're looking for participants for a workshop at Atlassian! We need Jira admins who have interesting custom workflows, issue views, or boards. Think you have a story to sha...

461 views 7 5
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