Hi, I am trying to create a transition validator that allows a transition only if there is a non-blank field in the parent issue.
From my testing this doesn't seem achievable using the standard JIRA validators, so I'm looking at Script Runner to achieve this.
I can certainly get it going with a Condition on the workflow based on a JQL query:
issuetype = Development AND status = Testing AND issueFunction in subtasksOf ("'Release Note' IS NOT EMPTY AND issuetype in (Feature,Bug)")
The problem with this is that is removes the transition button, whereas I would prefer to display an error. JQL is not available in Script Runner validators, so I'd appeciate any pointers on
- whether I can actually convert this to a Simple Script validator?
- whether anybody can point me to a resource that shows scripting equivalents for the JQL above (not being a programmer)?
Thanks!