# User smart values in Jira Automation: examples

URL: https://goingstellar.ro/reference/smart-values/user-smart-values/

A user smart value stands for a person: the assignee, the reporter, the creator, the person who started the rule, or a user picker field. Add a property such as displayName, emailAddress or accountId to read it.

## Syntax

```
{{assignee.displayName}}
{{reporter.emailAddress}}
{{creator.accountId}}
{{initiator.displayName}}
[~accountId:{{assignee.accountId}}]
```

## Arguments

- `property` (required: yes): accountId, active, avatarUrls, displayName, emailAddress or timeZone

## Works on

- Fields: assignee, reporter, creator, initiator, comment.author and user picker fields
- Returns: text, or an object for avatarUrls and properties

## Examples

```
{{assignee.displayName}}
```

Name the assignee in a message. The value is the profile name of the user.

Result:

```
<display name>
```

Run on Jira Cloud on 29 Nov 2026.

```
{{reporter.emailAddress}}
```

Send an e-mail to the reporter. It renders only when the profile shows the address to you.

Result:

```
<email>
```

Run on Jira Cloud on 29 Nov 2026.

```
{{assignee.accountId}}
```

The stable ID you need for an assignee edit or a REST call.

Result:

```
<accountId>
```

Run on Jira Cloud on 29 Nov 2026.

```
Hi [~accountId:{{reporter.accountId}}], please review {{issue.key}}.
```

Mention the reporter in a comment so that Jira notifies them.

Result:

```
Hi [~accountId:<accountId>], please review WEB-48.
```

Run on Jira Cloud on 29 Nov 2026.

```
{{assignee.timeZone}}
```

Read the time zone of a user to convert a date for them.

Result:

```
Europe/Bucharest
```

Run on Jira Cloud on 29 Nov 2026.

```
{{initiator.locale}}
```

The locale of the person who started the rule, useful for date formats.

Result:

```
en_US
```

Run on Jira Cloud on 29 Nov 2026.

## Pitfalls

- {{initiator.timeZone}} rendered empty while {{assignee.timeZone}} gave a zone (checked on Jira Cloud, November 2026). Pass `{{assignee.timeZone}}` or `{{reporter.timeZone}}` to a time zone function instead.
- Profile privacy applies. If a user hides the e-mail address from you, `{{reporter.emailAddress}}` renders empty, with no error.
- A mention is written with the account ID, not the name: `[~accountId:{{assignee.accountId}}]`.
- `{{assignee.username}}` rendered empty; `{{assignee.accountId}}` is the identifier to use.

## Questions and answers

### How do I read the user in a comment trigger?

Use `{{comment.author.displayName}}`. With a manual trigger on a work item with two comments it rendered the names of both authors joined by a comma, so use it with a comment trigger.

## Related

- [{{issue.key}}, {{issue.summary}} and other issue fields](https://goingstellar.ro/reference/smart-values/issue-fields/)
- [{{issue.comments}}](https://goingstellar.ro/reference/smart-values/issue-comments/)
- [setTimeZone() and convertToTimeZone()](https://goingstellar.ro/reference/smart-values/date-timezone/)
- [locale() and withLocale()](https://goingstellar.ro/reference/smart-values/date-locale/)
- [Default values {{value|default}}](https://goingstellar.ro/reference/smart-values/default-values/)

## Sources

- [Jira smart values: users (Atlassian Support)](https://support.atlassian.com/cloud-automation/docs/jira-smart-values-users/)

