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-##]
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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?
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.