Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
Community Members
Community Events
Community Groups

"ScriptRunner Script" type Validator for Create Transition in Workflow not working

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?

1 answer

1 accepted

1 vote
Answer accepted

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 for how to start writing them.

Got it.

This expression worked for me:

(issue.epic != null) || issue.isEpic

Suggest an answer

Log in or Sign up to answer

Atlassian Community Events