The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

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

Mentioning a reporter in comment sent from Automation using smart values

Alexander Makarovsky
March 6, 2025

Hi! I guess, that's easy, but I'm out of options to resolve myself.

I have a rule which should send a comment tagging for example an issue reporter.
I'm using this

[~accountId:{{user field name.accountId}}]

from https://support.atlassian.com/cloud-automation/docs/jira-smart-values-users/

So my text in automation is

[~accountId:{{reporter.accountId}}] Please check that description has ....

But the actual comment looks like

[~accountId:JIRAUSER15702] Please check that description has ....

Instead of giving me standard mention with clickable name like if I've been typing @amakarovsky

I'm on Data Center 8.7.1 

2 answers

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

5 votes
Answer accepted
Marc -Devoteam-
Community Champion
March 6, 2025

Hi @Alexander Makarovsky 

All the options you mention are based on Cloud, for DC, this should work:

[~{{issue.assignee.name}}]

Change "assignee" to the relevant field (eg. reporter, etc).

Or if it's a username, this should work:

[~UserName]

Radek DostƔl
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.
March 6, 2025

If I recall correctly, it uses keys instead of usernames, but yeah cloud != dc.

0 votes
Alexander Makarovsky
March 6, 2025

Niiiice! Thanks, folks!