Send user display name in email for comment mentions in Jira Cloud Automation

Platform Notice: Cloud Only - This article only applies to Atlassian products on the cloud platform.

Summary

Use case

When an existing comment is edited and a user is mentioned in that comment, an email needs to be sent to a specific user, with the edited comment's body including the mentioned user's display name.

Current behaviour

Using the smart value {{comment.body}} in the "Send email" action of the Automation rule, the mentioned user's Account ID is shared instead of the Display name.

Example:

[~accountid:<user's account ID>]

Solution

The smart value {{comment.body.text}} need to be used instead to send the mentioned user's Display name in the email.

The other variations of this smart value are:

  • {{comment.body.html}}: Using this smart value not only sends the mentioned user's display name in the email, but if there are any links added in the comment, they will be sent in HTML format to the email

  • {{issue.comment.last.body.text}} and {{issue.comment.last.body.html}}These smart values work the same as the above smart values, but on a newly added comment, instead of the edited comment.

Updated on June 18, 2025

Still need help?

The Atlassian Community is here for you.