Automation - Advanced Branching over issue links

Julia Foden
Contributor
July 30, 2021

I was hoping to use advanced branching to add one issue's links to the existing links of another issue. 

I have started testing with a manual trigger and simple logging. 

rule.png

But I got this error

error_1.png

 

 

For my immediate needs I'll do what I need to do manually.

But has anyone got advanced branching to work for iterating over a list of issue links?

1 answer

1 accepted

1 vote
Answer accepted
Bill Sheboy
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 30, 2021

Hi @Julia Foden 

The list values (links, comments, etc.) have attribute-based values, so you need to access the one you want.  Please try this for the branch:

{{issue.issueLinks.key}}

Best regards,
Bill

Julia Foden
Contributor
July 30, 2021

Hi @Bill Sheboy 

I tried that but it logged nothing. In my original rule, the branch did log the issue key of the first link but then hit the error.

Bill Sheboy
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 30, 2021

Thanks for that information, Julia.

I updated my post as when I tried this, it does appear objects are available in advanced branching, and there is something special about links: the branch works with just the key but I also see nothing logged.

I'm gonna try this and see if I can get it to work as I expected it is an inward/outward link issue...

Yup, these worked 

{{issue.issuelinks.inwardIssue.key}}

{{issue.issuelinks.outwardIssue.key}}

__Bill

Bill Sheboy
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 30, 2021

And...If you need to process these as a batch, consider merging the inward and outward links using list and text functions, and a created variable...Then the created variable can be split into a list to drive the Advanced Branch source.

Julia Foden
Contributor
July 30, 2021

Thank you Bill. 

Like Bill Sheboy likes this

Suggest an answer

Log in or Sign up to answer