Hello,
Im attempting to add an automation rule that will have a branch condition JQL to get issues in epics linked to the 'trigger issue'.
The JQL leverages ScriptRunner JQL functions and it includes the smart value of the trigger issue.
The problem is that the rule is failing on the JQL saying the curly brace used for the smart value is a reserved character and to put it in a string or use the escaped unicode value of '\u007b'.
An example of a functioning version of this jql is :
issueFunction in issuesInEpics(" issueFunction in linkedIssuesOf('key=CCFT-2', 'is implemented by') ") AND status != closed
Which in a JQL Branch condition would cleanly look like:
issueFunction in issuesInEpics(" issueFunction in linkedIssuesOf('key={{issue.key}}', 'is implemented by') ") AND status != closedBelow is my current 'version' of the JQL but it is continuing to fail. I've tried numerous 'combination's of escapes to get this pass but have had no luck.
issueFunction in linkedIssuesOf('key=\"{"\"{"issue.key\"}"\"}"', 'is implemented by') ") AND status != closedAnother failure failure showing how I had attempted the JQL using the unicode values.
CCFT-2: "(issueFunction in issuesInEpics(" issueFunction in linkedIssuesOf('key=\u007b\u007bissue.key\u007d\u007d', 'is implemented by') ") AND status != closed) AND (key != CCFT-2)" - Error in scripted function: issuesInEpics, see below, Error in scripted function: linkedIssuesOf, see below, Error in the JQL Query: The character '{' is a reserved JQL character. You must enclose it in a string or use the escape '\u007b' instead. (line 1, character 5)
How can I correctly format the JQL with escapes to get this JQL to work when triggered in the rule?
Version info:
Jira Server(not Cloud): 8.53
Automation for Jira: 7.2.8
ScriptRunner : 6.2.2
Thanks in advance for any help.
Regards,
Greg