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
4,298,231
Community Members
 
Community Events
165
Community Groups

Hyperlink in Automation for text

I am new to Jira so bear with me.

I have been able to send a link to slack for an issue by using {{issue.url}} which looks like:

Message in Jira: {{issue.assignee.displayName}} just completed {{issue.url}}

Result in Slack:  "UserXXX just completed https://xxx.atlassian.net/browse/issue-##"

 

But I would like it to look like:

" UserXXX just completed issue-##"

where the "issue-##" is a hyperlink to the site. This is a simple example as the real message. I will actually have several links in the message and it gets quite confusing when there are 5+ fully listed out URL's 

 

I tried [{{issue}} | {{issue.url}}} but that just messages

[issue-##|https://xxx.atlassian.net/browse/issue-##]

2 answers

1 accepted

0 votes
Answer accepted
Daniel Eads Atlassian Team May 29, 2020

Hey Adam, welcome to the Community!

You're nearly there. Slack uses the link format "<URL|text>", so an issue key link in Automation would look like this:

<{{issue.url}}|{{issue.key}}>

Swap that in and you'll be in business!

Cheers,
Daniel

Awesome this worked!!

Is there documentation that you can point me to for learning these things?  I am actually trying to use Jira to run a mechanical design project and my needs defiantly don't fit the mold. 

Daniel Eads Atlassian Team Jun 08, 2020

For this bit, I referenced Slack's API documentation and checked the section on formatting links.

In general for learning Jira automation, reading articles here on Community is a good start, as well as browsing through questions that look similar to what you're trying to work with. Through the end of June, there's also free Atlassian University training courses. Happy learning!

Anyone know how we could parse out a regular link in a comment on a ticket and change it to a slack format before using that comment in a slack message so it's clickable?

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Site Admin
TAGS

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you