The Atlassian Community can help you and your team get more value out of Atlassian products and practices.
I currently setting up a workflow validator in Jira Cloud using Scriptrunner.
I was able to get the value of a single select field like this: issue.customfield_10040.value == 'Home'
Now I'm trying to get the values of a multi select field but it's not working.
I used issue.customfield_10039[0].value == "USA" but as the field can have up to 10 entries this seems not to be the right way.
What am I doing wrong here? I hope somebody can help me.
Thank you.
Multi-select fields hold arrays of values, even when there is only one selected. You'll need to iterate through the array to find your value.
@Nic Brough _Adaptavist_ Thank you for your reply. Can I do this in a workflow validator. I could only saw the function in the Script Console.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi everyone, We’re always looking at how to improve Confluence and customer feedback plays an important role in making sure we're investing in the areas that will bring the most value to the most c...
Connect with like-minded Atlassian users at free events near you!
Find an eventConnect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.
Host an eventYou're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.