Forums

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

The <@{{assignee.properties.metadata.slack_id}}> property does not mention the user in the automatio

Alexandra O January 13, 2025

 

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!


slackmention.PNGcapturejiraauto.PNG

2 answers

0 votes
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.
January 15, 2025

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

0 votes
Luiz Ricardo Pereira da Silva
Contributor
January 15, 2025

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,

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
TAGS
AUG Leaders

Atlassian Community Events