Here's the script example that Insight provides
import com.atlassian.jira.component.ComponentAccessor;import com.atlassian.jira.issue.fields.CustomField; def value = issue.getCustomFieldValue(ComponentAccessor.getCustomFieldManager().getCustomFieldObject(10000)); // Change ID to the correct one /* If an insight custom field has an object called "Microsoft" it will fail */if (value != null && "Microsoft".equals(value[0].getName())) { return "This is not a valid vendor!";}return true
I've modified the script for my field but get the following (even before modifying it)
and here's my error
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.