Hello!
I'm attempting to create an automation rule that does the following:
When an issue is transitioned to Accepted status, send a slack message to a specific slack channel stating that the issue is accepted and ready to be merged.
This first part is simple enough. However, there's an additional part of the rule I need help with, as follows:
Within the automated slack channel message, I want to tag the specific user who appears in a custom field called "Developer" in JIRA.
The rule is working (see screen caps), however the tag is not creating a functional highlighted tag, rather it's in plain text, which will not notify the specific user.
From my research so far, it seems that the problem is that the Slack integration wants to see the Slack User ID versus the display name. I've tried a few options in place of "displayName" including "accountID", "username", "userID", and "slackUserID" but apparently there is no mapping between the Custom Field (Developer) and the Slack User ID.
Am I spinning my wheels on something that's not possible or does someone perhaps have a clever workaround?
Thank you!
Keith
As you have found, and others have noted, the Slack ID is needed to mention someone from a Atlassian Automation rule. (It is no longer possible to direct-message from such rules, even though the UX indicates that is possible.)
And so, the Slack ID values for each user must be stored somewhere in Jira, preferably with each user's information. A common way to do that is in user entity properties where they can be accessed as smart values.
Kind regards,
Bill
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Keith,
I am not aware of anyway to tag a specific user in Slack from Jira nor send a message to a user account - only a channel like you are doing. Unless there is something on the Slack side that can be done to parse out the string and use it somehow.
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.
You are welcome!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Keith Tasker , I found an article that seems to outline a workaround.
The challenge is that Jira by default does not store the users's Slack User ID, which is required for @ mentions to function properly.
That article outlines a Python script that updates Jira users with their Slack IDs, which you can then grab via properties.
Hope this helps!
Robert
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.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.