Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,298,063
Community Members
 
Community Events
165
Community Groups

Automation Mention User

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 M Funk Community Leader Aug 23, 2021

Hi Mahmoud - Welcome to the Atlassian Community!

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

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 M Funk Community Leader Sep 14, 2021

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

Like Kamilla likes this

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 John M Funk likes this
John M Funk Community Leader Sep 14, 2021

Glad that worked!

Like Kamilla likes this

[~accountid:5c3368158a78885a3c1334]

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

0 votes
Gaurav Community Leader Aug 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
TAGS
Community showcase
Published in Jira Software

Upcoming changes to epic fields in company-managed projects

👋 Hi there Jira Community! A few months ago we shared with you plans around renaming epics in your company-managed projects. As part of these changes, we highlighted upcoming changes to epics on...

14,814 views 37 48
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you