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

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

Avatar

1 badge earned

Collect

Participate in fun challenges

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

Challenges
Coins

Gift kudos to your peers

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

Recognition
Ribbon

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!

Leaderboard

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,556,214
Community Members
 
Community Events
184
Community Groups

Is there a way to route notifications to a Slack channel when a specific user is tagged in comments?

I know there is already an integration with Slack to get notifications when cards are updated, however, I was wondering if I could be more specific with this through automation.

I'm looking to create an automation that once a specific user is mentioned/tagged in a comment that it brings the information to a private Slack channel showing which card they were tagged in a comment on.  

1 answer

1 accepted

0 votes
Answer accepted
Bill Sheboy
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.
Apr 19, 2023

Hi @Karissa 

Do you mean...

  1. for a single, specific user (e.g., you) who is mentioned in a comment, send a specific direct mention to them in Slack, or...
  2. for any single user mentioned, send a direct mention to them

I suspect #1 can be done by using a rule condition to look for the specific user's accountId in a mention, and then send to a channel specifically for them...which you specify.

For #2, I recall some posts where people solved this by also storing the Slack user id values in entity properties for the Jira users, and then referencing them when needed in rules.  I have not tired this, so I cannot confirm its effectiveness.

Kind regards,
Bill

I'd like to set it up for one or two specific users so I think #1 from your question is more proper. Just wondering what the automation setup would look like for this since there's not an obvious option given.

If using the JQL, (involving the account id which I do have) how do I reference the actual comment tag and not a field/custom field which are shown in any examples in past questions for this type of automation?

Bill Sheboy
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.
Apr 19, 2023 • edited

Mentions in comments put in text like below, including the user's accountId value:

[~accountid:theUsersAccountId]

And so your rule could be triggered on issue commented, and then use the match() function to find if your specific user(s) accountId was used.  You can find their accountId by trying a JQL search for them by name and Jira will replace the name with the id.

So the rule could be something like this:

  • trigger: issue commented
  • advanced compare condition: use match() to check if the user was mentioned
  • action: send your Slack message

Please let me know how that works for you.  Thanks!

Like Karissa likes this

@Bill Sheboy This worked thank you so much!

Like Bill Sheboy likes this

(Just mentioning for others who might find themselves here looking for options.) Depending on if the mentioned user and the slack user are the same person, what else needs to happen, or how many people you need to set this up for (Bill's answer allows for a lot of flexibility!), you might consider recommending people add the Jira app on the Slack side (if your IT allows it). This can be set to automatically post a slack notification to the user when there are mentions (among other things). Downside is it is user configurable so they could turn it off --again, just depends on the needs.

There is also the Slack integration for Jira that is handy.

Like Bill Sheboy likes this

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events