Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root


1 badge earned


Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!


Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.


Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!


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
Community Members
Community Events
Community Groups

Mention users in automation comment


I created an automation to comment an issue when status changes to "Reopen". I used smart values for users:

But the end result is a plain text comment. How can I actually mention those users, so they are notified as well?




1 answer

1 accepted

0 votes
Answer accepted
John Funk Community Leader Oct 25, 2020

Hi GUI - can you share the rule you have so far?

@John Funk Yes, sure. 

This is the rule.


John Funk Community Leader Oct 28, 2020

There is nothing here. 

@John Funk Sorry, wrong link.

Here the image.

This is the message that appear as a new comment:

{{reporter.displayName}} e {{assignee.displayName}}, essa issue foi reaberta por {{initiator.displayName}}.
John Funk Community Leader Oct 28, 2020

Try this for the text to show up:

{{issue.reporter.displayName}} and {{issue.assignee.displayName}}

Then send and email to the reporter and assignee. 

Like Bill Sheboy likes this

Sorry @John Funk , I did not understand.

Send an email? What I am trying to do is to create an automatic comment that mentions the user, so they are notified. The comment created via automation is currently in plain text. The mention does not work.


John Funk Community Leader Oct 28, 2020

That is why you can send an email in the same rule so that they are notified - it does not have to be a mention for an email to go. 

Hi there,

To mention from a comment, please try:


If you need to mention a specific person, you will need their id value, which you can get from performing a search or looking at their profile info.



Best regards,


Like # people like this

@John Funk But users see notifications inside Jira application, not on email. What I am trying to avoid is sending emails for Jira notifications. That's why I am trying to mention users in comments...

Like # people like this

@Bill Sheboy Wow, that is really complicated. If we are commenting an issue and using smart values for user names, shouldn't Jira mention those users? 

Am I missing something here, or this does not make sense?

Like Matthew_Kent likes this

Hi @Gui Ávila 

Well...That is how I know to use smart values perform a mention at this time.  I would welcome any guidance if someone has found a simpler way to do this from the automation rules.

Remember that when we are inside a rule, we don't have the intellisense/type-ahead search to find a user (as when typing in a comment directly).  We need to reference a dynamically changing user identity from either the fields in the issue, or hard-coded.


Like Becky Klein likes this

@John Funk Sorry, I forgot do reply.

Worked perfectly. Thanks a lot, again!

Like John Funk likes this
Like # people like this

Help! I can't see that / how you solved this. I want to mention a user (which I can do with issuefields) but it needs to be a mention so that it notifies the user they need to see the issue. Also it needs the key (as a link) in the email notification. Tried using email but then it comes from 'automation for jira' instead of jira and just confuses the user. 

Currenly using: {{issue.fields.Manager.displayName}} This travel request {{issue.key}} for {{reporter.displayName}} needs your approval

but it isn't a mention.  I can't grab their actual id value in a rule.

Hey @Paula Manildi ,

@Bill Sheboy Said above how to do it:


Hi there,

To mention from a comment, please try:


If you need to mention a specific person, you will need their id value, which you can get from performing a search or looking at their profile info.



Best regards,




Like John Funk likes this

Thanks, it got lost in the noise! Using this worked!

[~accountid:{{issue.fields.Manager.accountId}}]  This travel request {{issue.key}} for {{reporter.displayName}} needs your approval

Like # people like this

I have this working: [~accountid:{{issue.assignee.accountId}}]

And this working: [~accountid:thePersonsIdNumber]
to tag an individual

How does one tag a group in a comment?

I have tried:


each fail

Hi @Paul Campbell 

Mentioning a group is not possible yet, and here is the suggestion to add that feature:

Two possible work-arounds, one more brittle and one slower:

  1. hard-code the list of values (either in the rule or an entity property) and iterate over it to create the mentions
  2. use the REST API to gather the members of the group and iterate over them to create the mentions

Kind regards,

Like John Funk likes this

For me,  [~accountid:{{issue.assignee.accountId}}] looks like it has mentioned someone in the comment - that is, the user name gets markup that looks like they've been mentioned in a comment, but there still is no email notification to the user that they've been mentioned in a comment like there would be if I had "@" someone manually.

For example, this comment was posted successfully using [~accountid:{{issue.assignee.accountId}}] from an automations rule, but I never got any indication that I was mentioned, either by email, or in Jira: Screen Shot 2022-04-15 at 9.31.51 AM.png

But if select and copy the comment that Automation for Jira posts, and re-post it in the comments section manually I will get a notification

Is anyone actually getting the "you were mentioned" emails like the below, when it is an automated comment post? I can't figure out why I don't get them. The whole point of commenting with an @ is so the user will be alerted... Screen Shot 2022-04-15 at 9.38.37 AM.png

Any assistance is appreciated.

Heloo @Bill Sheboy 

Hope you are doing well!

That's really a helpful solution as u always does and one of my complications got sorted. thanks Bill.

Another place I am still stuck where I was trying to send a teams message using incoming webhook.

all smartvalues I am successful able to reflect in the teams notification via automation but I'm missing the mention user part. I have tried with [~accountId : user account id] and the message in teams is coming as  [~accountId : 133ghdjshjsjsjj].

The account Id person does not belongs to that issue accountable nor in the watchlist but exist in jira and added in same project.


My intention is to send a notification to set of people wen there is any changes to fix version.. these people are in jira however they are not part of the issue. 

A solution or suggestion would be a great helIMG_20221208_181308.jpgIMG_20221208_182444.jpg

Hi @Rahul Jith 

That is not possible yet, as you can see in this suggestion:

The challenge is the same as for Slack mentions: the different tools have different user accounts, and so you would need access to the user information in the destination tool: MS Teams.

The work-around for Slack mentions is to replicate the Slack user ids in Jira, such as with entity properties for each user.  I have not tried this before with Teams, so I do not know if that is possible.

Kind regards,

Suggest an answer

Log in or Sign up to answer
Site Admin

Atlassian Community Events