Right now I have a simple automation....when an issue is transitioned from "not ready" to "ready" then do an audit log action.. in that action i have the following:
{{#if( (issue.parent.fields.customfield_12521.join(",").contains("XYZ") and issue.fields.fixVersions.join(",").contains("ABC")) or (not(issue.parent.fields.customfield_12521.join(",").contains("XYZ")) and not(issue.fields.fixVersions.join(",").contains("ABC"))) )}} Pass {{else}} Fail {{/}}
This allows me to save the automation but when it runs I get this error..
"Unable to render smart values when executing this rule: Invalid start for token"
I seem to have issues with Else statement, investigating some more Im being suggested to use the following tweaked conditions:
{{#if( (issue.parent.fields.customfield_12521.join(",").contains("XYZ") and issue.fields.fixVersions.join(",").contains("ABC")) or (not(issue.parent.fields.customfield_12521.join(",").contains("XYZ")) and not(issue.fields.fixVersions.join(",").contains("ABC"))) )}} Pass {{else}} Fail {{/if}}
which doesnt even let me save the automation and gives me this error..
Error parsing template: Closing tag (if) does not match opening tag (if( (issue.parent.fields.customfield_12521.join(",").contains("XYZ") and issue.fields.fixVersions.join(",").contains("ABC")) or (not(issue.parent.fields.customfield_12521.join(",").contains("XYZ")) and not(issue.fields.fixVersions.join(",").contains("ABC"))) ))
Any help would be greatly appreciated..