Are you in the loop? Keep up with the latest by making sure you're subscribed to Community Announcements. Just click Watch and select Articles.

×
Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

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

Avatar

1 badge earned

Collect

Participate in fun challenges

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

Challenges
Coins

Gift kudos to your peers

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

Recognition
Ribbon

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!

Leaderboard

Automation Rule that retrieves and writes the linked issues to a Teams webhook

Hello

We have begun to write automation rules in our Jira project.

The latest is for our Release team to notify our stakeholders that we have released and deployed a change that will resolve a linked issue in their project. This is triggered nicely by the transition to Done.

The notification is being written to Teams via a webhook created in a channel.

The notifications are working and we have worked out how to retrieve some of the issue details but cannot find how to retrieve the linked issues.

We currently are simply writing them to the comments field and publishing the last comment. This is obviously double handling and it also won't publish the URL nicely.

Can anyone help with the code needed to be placed in the automation rule to list the linked issues?

Thanks in advance

3 answers

Any idea how to make list of these?

So instead of printing ABC-1, ABC-2, ABC-3... etc it would print along the lines:

ABC-1 - Summary - Link

ABC-2 - Summary - Link

Would that be doable?

@Jenni Järvinen I'm Looking for the same solution, tried many different approaches and could not make it work yet.

0 votes
Stephen Wright _Elabor8_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
Aug 08, 2020

Hi @Garth 

Do you just want a list of the issueLinks for the trigger issue?

Have you tried:

{{issue.issuelinks.inwardIssue}}

{{issue.issuelinks.outwardIssue}}

 These aren't limited to one key, just all related keys depending on the link direction

Ste

Thanks @Stephen Wright _Elabor8_  - Ive made some more progress, thanks for the answer !

I have since found 

{{issue.issuelinks.first.outwardIssue.key}}
which seems to help

If there are two how to I return the second?
Thanks
Mark Chaimungkalanont
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
Aug 11, 2020

Hey there Garth,

You should be able to use a similar format as above to print out the links to all the issues. In the above example, issue.issuelinks is the list of issue links, .first only picks the first issue, so if you omit that, it will try to resolve all the links in the list.

So if you go:

{{issue.issuelinks.outwardIssue.key}} -> should output ABC-12, ABC-13
{{issue.issuelinks.outwardIssue.url}} -> should out put links to the above issue

Like # people like this

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events