Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Deleted user
Level
0 / 0 points
Next:
badges earned

Your Points Tracker
Challenges
Leaderboard
  • Global
  • Feed

Badge for your thoughts?

You're enrolled in our new beta rewards program. Join our group to get the inside scoop and share your feedback.

Join group
Recognition
Give the gift of kudos
You have 0 kudos available to give
Who do you want to recognize?
Why do you want to recognize them?
Kudos
Great job appreciating your peers!
Check back soon to give more kudos.

Past Kudos Given
No kudos given
You haven't given any kudos yet. Share the love above and you'll see it here.

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

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

2 answers

I have since found 

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

If there are two how to I return the second?
Thanks

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

0 votes

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 !

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Jira Automation

Announcing the Jira automation template library!

Hi all,  After many months of work, I am delighted to announce the launch of the Jira Automation Template Library!  The Template Library is a new website dedicated to all things Jira au...

998 views 17 26
Read article

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