Going Stellar

Home/Smart values reference

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

ArgumentWhat it isRequired
value1, value2Smart values or quoted strings to compareyes
valueA smart value or quoted string to testyes

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:

true

Run on Jira Cloud on .

{{equals(issue.summary, "hello world!")}}

The comparison is case sensitive, so a different capital gives false.

Result:

false

Run on Jira Cloud on .

{{exists(issue.designer)}}

Test a field that this work item does not have.

Result:

false

Run 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/2026

Run 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 designer

Run 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 is false.

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 behind exists() or use the fallback form.

Sources

  1. Jira smart values: conditional logic (Atlassian Support)

Markdown version · All smart values