Jira Automation smart value
isEmpty() and isNotEmpty() in Jira Automation
isEmpty() returns true for a zero-length text and isNotEmpty() returns true for anything else. They are meant for guarding a step, for example only posting a comment when a piece of text was found.
Syntax
{{issue.description.isEmpty()}}
{{issue.description.isNotEmpty()}}
Works on
- Fields: text smart values, including the result of another text function
- Returns: true or false
Examples
{{issue.summary.isEmpty()}}A quick sanity check that the title is filled in.
Result:
falseRun on Jira Cloud on .
{{issue.description.isNotEmpty()}}Decide whether a description exists before you quote it in a message.
Result:
trueRun on Jira Cloud on .
{{issue.summary.substringAfter("zzz").isEmpty()}}Detect that a separator was not found: substringAfter() gives an empty text, so the check is true.
Result:
trueRun on Jira Cloud on .
{{issue.summary.substringAfter("zzz").isNotEmpty()}}The opposite check, true only when the separator exists and something follows it.
Result:
falseRun on Jira Cloud on .
Pitfalls
- On a field that has no value, such as the environment of an issue that never had one, both calls render nothing at all instead of true or false (checked on Jira Cloud, November 2026). Test such a field with an exists check or a default value first.
- Use these on text. For a list, the list functions have their own size and empty checks.
Related
- trim()
- Default values {{value|default}}
- equals() and exists() in conditions
- length()
- size and isEmpty on lists