Hi guys,
I have an automation in Jira for certain conditions to notify a message to a slack channel, what happens is that with some users the parameter <@{{assignee.properties.metadata.slack_id}}> does not bring the user to mention it in the channel. Could you help me to know how to fix it? Thanks!
Hi @Alexandra O
The Jira user's account ID is different from the Slack user's ID. The Slack ID values are not stored in Jira.
From what you show, it appears someone tried to add the Slack ID values as entity properties for each user, but the value is missing from one or more users.
Atlassian wrote an article a while ago describing how to bulk-load the Slack IDs this way: https://community.atlassian.com/t5/Automation-articles/Mention-someone-directly-in-Slack-via-Jira-Automation/ba-p/1528605
If you are only missing a few (or one) value, you could use the article to repeat the bulk load steps, or follow this recent post to add just one (or a few) using REST API calls: https://community.atlassian.com/t5/Jira-questions/Re-Re-Iterate-through-JQL-result-of-issues-extract-cer/qaq-p/2916834/comment-id/1081211#M1081211
Kind regards,
Bill
Hello @Alexandra O ,
If the email address associated with the Slack user account is the same as the email address of the Jira user account, as a workaround, please try using the following:
@{{issue.assignee.emailAddress.remove("@yourDomain")}}
At the moment, I cannot confirm why some instances do not process user Smart Values correctly. This might be the case for your instance. Regardless, please try this approach and let me know if it resolves the issue.
Best regards,
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.