Going Stellar

Home/Smart values reference

Jira Automation smart value

Default values in Jira Automation smart values

A smart value that points at an empty or missing field renders as an empty string. Add a pipe and a quoted default after it to print a fallback instead, for example {{issue.assignee.displayName|"Unassigned"}}.

Syntax

{{value|"default"}}
{{issue.field|0}}

Arguments

ArgumentWhat it isRequired
defaultThe fallback, in double quotes for text or bare for a numberyes

Works on

  • Fields: any smart value that can be empty
  • Returns: the value when it exists, otherwise the default

Examples

{{invalid reference|"Hello world"}}

The form Atlassian documents: a reference with no value prints the default.

Result:

Hello world

Run on Jira Cloud on .

{{issue.resolution.name|"Unresolved"}}

Print a status word for an open work item that has no resolution.

Result:

Unresolved

Run on Jira Cloud on .

{{issue.fixVersions.name|"none"}}

Show "none" when the work item has no fix version.

Result:

none

Run on Jira Cloud on .

{{issue.Story Points|0}}

A bare number as default, so later math has a value to work with.

Result:

0

Run on Jira Cloud on .

{{issue.parent.key|"no parent"}}

Label a work item that is not under an epic or a parent.

Result:

no parent

Run on Jira Cloud on .

{{issue.assignee.displayName|"Unassigned"}}

The default is ignored when the field has a value; an assigned work item prints the name.

Result:

<display name>

Run on Jira Cloud on .

Where the documentation differs

  • {{invalid reference|Hello world}}

    Run on Jira Cloud, : the documentation says Hello world (the page on formatting smart values shows the default without quotes), the actual result is .

Pitfalls

  • The default without quotes does not work for text. {{invalid reference|Hello world}} rendered empty, while {{invalid reference|"Hello world"}} printed the text (checked on Jira Cloud, November 2026). Two pages of the documentation show the quoted form, one shows it unquoted.
  • The default replaces an empty result. When the field has a value, as with {{issue.summary|"No summary"}}, the value is printed and the default is ignored.
  • Numbers can go bare: {{issue.Story Points|0}} prints 0. Inside a math block, {{#=}}{{issue.Story Points|0}} * 2{{/}} gives 0 for the same empty field.

Sources

  1. Jira smart values: issues (Atlassian Support)
  2. What are smart values? (Atlassian Support)

Markdown version · All smart values