Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
Community Members
Community Events
Community Groups

Workflow Validator - Multiselect Field (Cloud)

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.

1 answer

0 votes

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.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Confluence

An update on Confluence Cloud customer feedback – June 2022

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...

150 views 1 3
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you