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));<span> </span>// Change ID to the correct one /* If an insight custom field has an object called "Microsoft" it will fail */if (value !=<span> </span>null &&<span> </span>"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
