I have a custom field with multiselect options. I want to as a transition comparing the selected value of the custom field with a given String.
i did the following:
from com.atlassian.jira.component import ComponentAccessor;
from com.atlassian.jira.issue.fields import CustomField;
def value = issue.getCustomFieldValue(ComponentAccessor.getCustomFieldManager().getCustomFieldObject("customfield_12032"));
if (value != null && "Business Trips".equals(value[0].getName()) {
return "This is not a valid vendor!";
}
But the transition does not work on Create. Any ideas?