Automation Mention User

Mahmoud Zinji August 23, 2021

I cannot mention User in Automation Add Comment TO ISSUE AND NEITHER THIS SOLUTION WORK FOR ME 

 

[~ADD USER NASME HERE ]

what is the correct way to get the user name since its not working for me 

3 answers

1 vote
John Funk
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
August 23, 2021

Hi Mahmoud - Welcome to the Atlassian Community!

Try this text: [~accountid:{{issue.assignee.accountId}}]

Kamilla September 14, 2021

Thanks for this, I really appreciate  your idea, but for me it did not work.

I tried this [~accountid:{{reporter.displayName}}] and it brings @User mention but it doesn't contain the actual user ID, so it leads to a link: xy.atlassian.net/people/unknown .

 

In my case this did not give the result as expected, but thanks for the idea. :) 

John Funk
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
September 14, 2021

Can you share the actual trigger, because that syntax works for me. 

Like Kamilla likes this
Kamilla September 14, 2021

The displayName part was actually wrong. 


Wrong version:  [~accountid:{{reporter.displayName}}]

It was correct this way: [~accountid:{{issue.reporter.accountId}}] 

 

Thanks for your help again :) 

Like # people like this
John Funk
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
September 14, 2021

Glad that worked!

Like Kamilla likes this
0 votes
Oleg Mykytiuk April 14, 2022

[~accountid:5c3368158a78885a3c1334]

This is if you want to mention any person by id. 

0 votes
Gaurav
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
August 23, 2021

Hello @Mahmoud Zinji 

Welcome to the Atlassian community!!

You can mention the following persons in comments using smart values for automation:

Reporter: {{reporter.displayName}}

Assignee: {{assignee.displayName}}

Comments: {{issue.comments.author.displayName}} or {{issue.comments.last.author.displayName}}


Please accept the answer if this helps solve your query else respond and allow others to share input.

Suggest an answer

Log in or Sign up to answer