Hi,
I was trying to set up a simple scripted validator. Something like this
import com.atlassian.jira.component.ComponentAccessor;
import com.atlassian.jira.issue.CustomFieldManager;
import com.atlassian.jira.issue.fields.CustomField;
def customFieldManager = ComponentAccessor.getCustomFieldManager()
def cf = customFieldManager.getCustomFieldObjectByName("Main URL")
issue.getSummary() !~ 'hotfix' && issue.getCustomFieldValue(cf) == ""
now he doesn't recognize the ! mark. is there a way to do something like a like mechanisme?
Hi Thomas
So, if you want to check if the summary contains the word 'hotfix', you will need something like
issue.getSummary().contains("hotfix")
Hope that helps
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.