Jira Automation smart value
equals and exists in Jira Automation conditions: examples
equals(a, b) compares two values and exists(value) tells you whether a field or value is present. Both are normally wrapped in {{#if()}} to print text, or in if(condition, a, b) to choose a fallback.
Syntax
{{equals(value1, value2)}}
{{exists(value)}}
{{#if(equals(value1, value2))}}text{{/}}
{{#if(exists(value))}}text{{/}}
Arguments
| Argument | What it is | Required |
|---|---|---|
value1, value2 | Smart values or quoted strings to compare | yes |
value | A smart value or quoted string to test | yes |
Works on
- Fields: users, text and any other smart value
- Returns: true or false
Examples
{{#if(equals(issue.assignee, issue.reporter))}}Assign this issue to someone else so they can review.{{/}}Remind the team when the assignee and the reporter are the same person.
Result:
Assign this issue to someone else so they can review.Run on Jira Cloud on .
{{equals(issue.summary, "Hello World!")}}Compare a field with a fixed text.
Result:
trueRun on Jira Cloud on .
{{equals(issue.summary, "hello world!")}}The comparison is case sensitive, so a different capital gives false.
Result:
falseRun on Jira Cloud on .
{{exists(issue.designer)}}Test a field that this work item does not have.
Result:
falseRun on Jira Cloud on .
{{if(exists(issue.duedate), issue.duedate.format("dd/MM/yyyy"), "No due date")}}Print the due date in a readable format, or a fallback when it is empty.
Result:
15/12/2026Run on Jira Cloud on .
{{if(exists(issue.designer), issue.designer.displayName, "No designer")}}Avoid an empty gap in a message when a user field has no value.
Result:
No designerRun on Jira Cloud on .
Where the documentation differs
{{exists(issue.designer)}}Run on Jira Cloud, : the documentation says
The docs say {{exists(smartValue)}} returns true or null., the actual result isfalse.
Pitfalls
exists()on a missing field gives false, not null as the docs say, so it works directly as a condition (checked on Jira Cloud, November 2026).equals()on text compares exactly: Hello World! and hello world! are different.- Reading a property of a missing user, such as
issue.designer.displayName, prints an empty string, so put it behindexists()or use the fallback form.
Related
- {{#if}} … {{/}}
- and(), or(), not()
- equals() and equalsIgnoreCase()
- Default values {{value|default}}
- gt(), gte(), eq(), lt(), lte()