I have the following snippet:
{{ if(equals(issue.issueType.name, "Task"))}}
TASK
{{ /}}
{{ if(equals(issue.issueType.name, "Bug"))}}
BUG
{{ /}}
Which I assume should work, following the syntax and example found here:
https://support.atlassian.com/cloud-automation/docs/jira-smart-values-conditional-logic/#equals
{{if(equals(issue.assignee, issue.reporter))}}
Assign this issue to someone else so they can review.
{{/}}
But in my case the strings 'TASK' and 'BUG' are printed no matter what. The first if-statement also prints 'true', while the second doesn't print false (which is correct, my test issue has type = "Task").
Am I doing something wrong here? This is all run within an automation rule (web request, custom data, body, description field for a POST API call).
The space I've added before 'if' and the closing '/' at the end are necessary otherwise I get an error stating there's an issue with smart value expression.