Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How to capture the user name when someone is @ in comments?

chris sieverts
Contributor
January 29, 2026

For compliance reasons, we are capturing comments made on a Jira work items using the following:

date created: {{comment.created}}
ID: {{comment.id}}
Comment author display name: {{comment.author.displayName}}
Comment author email: {{comment.author.emailAddress}}
Comment: {{comment.body}}
Comment visibility type: {{comment.visibility.type}}
Comment visibility value: {{comment.visibility.value}}

however, when someone is "@" we are only getting the accountid which is something like "455263865943657686ghjd6". I do not see a smart value for capturing the username for the person who is mentioned by the "@". 

 

Has anyone any idea how to do this?

Thank you!

1 answer

1 vote
Bill Sheboy
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Champions.
January 29, 2026

Hi @chris sieverts 

When you only have the accountId value for the user, you have a few approaches to find their displayName in the rule:

  1. The rule could call the Get User REST API endpoint using the Send Web Request action
  2. Using a user-picker, custom field, the rule could set the field value, Re-fetch Work Item Data, and then get the user's other attributes, such as the displayName
  3. For a site with only a few users (e.g., a free license level) use a Lookup Table.  I would not recommend using this approach due to the potential maintenance problem of keeping the table up to date.

 

Kind regards,
Bill

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events