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")
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
how would I tag a slack group? I can't figure out the ID of the group...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Found the proper format for @ mentioning groups...Should have checked the docs first.
<!subteam^ABC123>
https://api.slack.com/reference/surfaces/formatting#mentioning-groups
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
thanks for following up, confirmed that worked.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.