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