I’m trying to do a Validator of type “ScriptRunner Script” in Jira Cloud
I’ve created a validator that uses this JQL:
(issuetype != Epic and "Epic Link" is not EMPTY) or issuetype = Epic
But when I try to create an Epic, I get this:
The following validator rejected the transition: ScriptRunner Script. The configuration is invalid. Contact the app vendor that provided this workflow element.
What am I doing wrong?
The goal is to require an Epic link field for all issues that are NOT an IssueType that is Epic. Is it my JQL that is wrong? The JQL works for searching issues. Is there a better way to do this type of validation?
That looks like a Server/DC chunk of code for a validator, not a Cloud expression.
Valdators on Cloud are totally different to Server/DC, see https://docs.adaptavist.com/sfjcl/how-do-workflow-validators-work-inside-of-scriptrunner-for-jira-cloud-48300315.html for how to start writing them.
Got it.
This expression worked for me:
(issue.epic != null) || issue.isEpic
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.