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

1 vote
Answer accepted
Marc - Devoteam
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 Leaders.
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 Leaders.
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!

Suggest an answer

Log in or Sign up to answer