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

Next challenges

Recent achievements

  • Global
  • Personal

Recognition

  • Give kudos
  • Received
  • Given

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Mention users in automation comment


Hi,


I created an automation to comment an issue when status changes to "Reopen". I used smart values for users: https://support.atlassian.com/jira-software-cloud/docs/smart-values-users/

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


Thanks!

 

Gui.

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.

Thanks!

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:

[~accountid:{{issue.assignee.accountId}}]

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.

[~accountid:thePersonsIdNumber]

 

Best regards,

Bill

@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...

@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?

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.

__Bill

@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:

[~accountid:{{issue.assignee.accountId}}]

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.

[~accountid:thePersonsIdNumber]

 

Best regards,

Bill

 

:)

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

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Site Admin
TAGS
Community showcase
Posted in Jira Software

Presenting the "Best of 2020" Jira Software roundup!

Catch up with Atlassian Product Managers in our 2020 Demo Den round-up! From Advanced Roadmaps to Code in Jira to Next-Gen Workflows, check out the videos below to help up-level your work in the new ...

7,073 views 8 28
Join discussion

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