I'm using JIRA ScriptRunner plugin and I'm trying to run a condition check for one of the custom field "Region" that has multiple types configured. Like Single Select, Multi Select, Checkbox.
I have tried the following and none of them work yet.
BTW the current type that I'm looking for is "Single Select" type.
cfValues['Region']?.value == 'GLBL'
cfValues['customfield_10000']?.value == 'GLBL'
cfValues['Region']*.value.contains("GLBL")
I get a warning that "Could not look up the type for this custom field, so we can't check this code. Possibly the field doesn't exist, or multiple exist for this name "
Thanks
It's just a type-checking warning, you can ignore it. There is not enough information for it to work out if the code is correct.
Your first example is correct for single select, the last one for multiselects.
Or are you saying you want to apply this condition on workflows where Region could be any of those cf types?
Thanks Jamie, the message under warning looked as if it couldn't find the custom field and hence was worried to get that fixed.
BTW I'm not looking for
>> Or are you saying you want to apply this condition on workflows where Region could be any of those cf types?
So I'm good for now.
Thanks.
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.