Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How can I mention Slack users from a Jira automation?

shimizu_jun August 13, 2020

Slack can mention  using @.
Included a "mention" in the message using automation's Slack notification.
As a result, there are some who can mention and some who cannot. If can not, it will be displayed as plain text.
Does anyone have the same problem? Is there a solution?

Sample(Message)

Hi,Mr Smith. you need check this.

<https://*******.atlassian.net/servicedesk/customer/portal/14/{{issue.key}}|{{issue.summary}}(creator:{{creator.displayName}})>

@John Smith
*@john_smith-->The same string as when using the mention function in slack(copy from "slack" and paste to "automation")

2 answers

1 accepted

4 votes
Answer accepted
JD
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
August 18, 2020

Hi @shimizu_jun 

You can mention a user with their Slack member Id (not the display name). The syntax would look something like:

 <@ABC123>

To find the user id you can go to the users profile in Slack, tap the more button and copy member id. (Slack removed username mentions due to GDPR https://api.slack.com/changelog/2017-09-the-one-about-usernames)

Currently we can't do mentions on the fly. We have a public ticket for better mentions here: https://codebarrel.atlassian.net/browse/AUT-1772

 

Thanks,

John

shimizu_jun August 25, 2020

My problem is solved. Thank you very much.

Daniel Eads
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
November 12, 2020

As a follow-up on this, we've provided a script that can sync the Slack IDs with Jira, in order to dynamically mention users through Automation rules again. Instructions and a link to the script are on this Community article. Cheers!

noa
Contributor
December 20, 2020

Do you plan to give a fix that will do it automatically - this script I will have to run it manually on each new person joining Jira

Daniel Eads
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
December 21, 2020

@noa the script can be scheduled using a cronjob or as a Windows Scheduled Task (depending on what system you're running it on). I would recommend doing that paired with your typical account-creation jobs. For example, if you create accounts for new employees on Mondays, have the job run every Tuesday morning.

noa
Contributor
December 4, 2022

Im looking for an option from automation to tag according to the assignee some one in the slack how can I do so?

Like Coral Demyanov likes this
Coral Demyanov January 9, 2023

Looking for the same solution as @noa , Is there an automatic solution without running script?

Like # people like this
1 vote
Jeffrey Bistrong
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.
April 19, 2022

how would I tag a slack group? I can't figure out the ID of the group...

 

StatusIndicator 2022-04-19 14-25-29(1).png

Jake B
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
May 26, 2022

You can locate the group id via the API or in the url when viewing the group from a browser.  Unfortunately, @ mentioning the group using the same <@ABC123> format is not working.  Anyone aware of a different method for @ mentioning groups?

Jake B
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
May 26, 2022

Found the proper format for @ mentioning groups...Should have checked the docs first.

<!subteam^ABC123>

https://api.slack.com/reference/surfaces/formatting#mentioning-groups

Like # people like this
Jeffrey Bistrong
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.
May 31, 2022

thanks for following up, confirmed that worked. 

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events