Forums

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

How can I reference more than one link in a Slack message from Automation for Jira?

Drew Nedderman
Contributor
December 27, 2019

I have an automation set up to notify me that a development ticket's linked JSD issues will be resolved in the next release. The JSD issues are then transitioned back to a support agent. The notification has hyperlinks

In our process, when a development ticket is resolved, a message is posted to Slack that refers to the ticket's linked support issues. If there is more than one linked issue, the issue links are combined into a single hyperlink with the issue keys separated by commas.

I'm trying to find a way for each linked issue to be shown in the Slack message individually. Here is what I have being sent to Slack:

 

Hi everyone, the linked bug ticket for <https://companyname.atlassian.net/browse/{{issue.issuelinks.issue.key}}|{{issue.issuelinks.issue.key}}> has been resolved and will be deployed in version {{issue.fixVersions}}.{{issue.issuelinks.issue.key}} is now assigned to {{issue.issuelinks.assignee.displayName}}.

Here's what that looks like:

Hi everyone, the linked bug ticket for DLS-16459, DLS-16459, INV-398, DLS-15831 has been resolved and will be deployed in version .DLS-16459, DLS-16459, INV-398, DLS-15831 is now assigned to .

I need some help separating the issue links into their own lines in the Slack message.

 

1 answer

0 votes
Mark Chaimungkalanont
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
December 29, 2019

Hey there Drew,

{{issue.issuelinks.issue.key}} is a shorthand for full list syntax. The full syntax can be seen at:

https://docs.automationforjira.com/reference/lists.html#examples

Something like this below should print out the issue keys in seperate lines

{{#issue.issuelinks}}
* {{issue.key}}
{{/}}

 Hope that helps!

Cheers,

Mark C

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events