You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
Next: Root
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
The Atlassian Community can help you and your team get more value out of Atlassian products and practices.
Hi everyone, thanks for reading this.
I'm currently experiencing two issues with Automation (and one is probably because of my lack of experience coding with JIRA, so it's easy to respond):
1. I need to include the issue link in a Slack message sent with Automation, (and ideally in the format of PRJ-123 and the text being the link itself, though not mandatory).
I've tried this:
"Hi @Lu , {{issue.key}}: {{issue.IssueLink}} has been pushed to Staging. Please review it and let us know if there are issues or, if not, move it to Done. Thanks!"
And even when {{issue.key}} works fantastically {{issue.IssueLink}}, {{issue.link. IssueLink}} or {{issue.link}} do not.
2. In Slack, I am not actually getting a mention with the "@Lu" in the message above. It just appears as plain text. Is there a way I need to mark that is a mention in Slack?
Thank you so much for your time and help!
Hey Lu,
It's been some time but I just wanted to follow up since you've not received an answer yet. The tricky bit with @mentions is that there's no guarantee between Jira and Slack that an @handle is the same in both applications. Under the hood, both Jira and Slack use unique identifiers that have a different format.
Luckily it is possible to @mention somebody, given you know the person's Slack identifier.
First, you'll need to get the user ID from Slack (hat tip Workast):
You'll need to insert this in the Automation message with the format <@U12345> - so taking your message from earlier, we'd swap out "U12345" with the value you copied from Slack:
Hi <@U12345> , {{issue.key}}: {{issue.IssueLink}} has been pushed to Staging. Please review it and let us know if there are issues or, if not, move it to Done. Thanks!
When the message is sent to Slack, the Slack client will pair it with the correct user and make that use the right @mention display name. That user gets a normal @mention in the channel (using whatever notification preference they have configured) and you get some Jira Admin success points!
Cheers,
Daniel
Yes, that works, the code now looks like this:
"Hi @Lu, *<https://COMPANYNAME.atlassian.net/browse/{{issue.key}}|{{issue.key}}>* - "{{issue.summary}}" has been pushed to Staging..."
But I'm still not able to make that @Lu work in Slack. Ideas appreciated. Thanks in advance!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I think I might've found something here for question 1...
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.