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.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.