Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root


1 badge earned


Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!


Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.


Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!


Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
Community Members
Community Events
Community Groups

[Automation] How do I send I include the issue link in a Slack message? How do I mention someone?

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}}, {{ IssueLink}} or {{}} 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!



3 answers

1 vote
Daniel Eads
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
May 27, 2020

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):

  1. Click on a user name within Slack.
  2. Click on "View profile" in the menu that appears.
  3. Click the more icon "..."
  4. Click on "Copy Member ID."



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!


Yes, that works, the code now looks like this:

"Hi @Lu, *<{{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!

Suggest an answer

Log in or Sign up to answer
Site Admin
AUG Leaders

Atlassian Community Events