# Default values in Jira Automation smart values

URL: https://goingstellar.ro/reference/smart-values/default-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

- `default` (required: yes): The fallback, in double quotes for text or bare for a number

## 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 29 Nov 2026.

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

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

Result:

```
Unresolved
```

Run on Jira Cloud on 29 Nov 2026.

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

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

Result:

```
none
```

Run on Jira Cloud on 29 Nov 2026.

```
{{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 29 Nov 2026.

```
{{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 29 Nov 2026.

```
{{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 29 Nov 2026.

## Where the documentation differs

- `{{invalid reference|Hello world}}`: run on Jira Cloud, 29 Nov 2026: 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.

## Related

- [{{issue.key}}, {{issue.summary}} and other issue fields](https://goingstellar.ro/reference/smart-values/issue-fields/)
- [{{assignee}}, {{reporter}}, {{creator}}, {{initiator}}](https://goingstellar.ro/reference/smart-values/user-smart-values/)
- [isEmpty() and isNotEmpty()](https://goingstellar.ro/reference/smart-values/isempty-isnotempty/)
- [{{#if}} … {{/}}](https://goingstellar.ro/reference/smart-values/if/)
- [{{#=}} math expressions](https://goingstellar.ro/reference/smart-values/math-expressions/)

## Sources

- [Jira smart values: issues (Atlassian Support)](https://support.atlassian.com/cloud-automation/docs/jira-smart-values-issues/)
- [What are smart values? (Atlassian Support)](https://support.atlassian.com/cloud-automation/docs/what-are-smart-values/)

