Advanced Branching through lookupObjects just repeats last object.

Erin Blomert
Contributor
October 12, 2022

Hi there,

I am having a heck of a time with what seems to be a simple and straightfoward automation.

First, I use Lookup Objects to get my list of objects I wish to operate on.  This is working well!  I am able to log both the size of the returned list and the names of the objects accurately.

image.png

 

Next, I want to iterate through the objects - I copied the instructions from here: https://confluence.atlassian.com/jirakb/update-insight-object-status-to-expired-using-automation-1072219008.html 

 

image.png

Once there, I tried to a) Log the Name and b)Send myself an email with the object name.

image.png

 

Seems straightforward!  However, the logs only record the last item 1x (Certificate 3, as shown in the log above.  And I get 3 emails - but they are all the same and only say "Certificate 3".  It's as though it is not iterating through the objects at all and just choosing the latest one every time.

(interestingly, if I place {{#lookupObjects}} {{Name}} {{/}} in the email body that coming from inside the branch, it still sends me all 3 values there)

Any suggestions? I had tried a lot of convoluted ideas and in the end, brought it back to the basics to try and solve from here.  

I also read through these but didn't find anything I was able to use...

https://community.atlassian.com/t5/Jira-Core-Server-questions/How-can-I-use-Advanced-Branching-in-Automation-for-unique/qaq-p/1909075

https://community.atlassian.com/t5/Automation-questions/How-to-iterate-over-a-created-variable/qaq-p/2069507

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.
October 12, 2022

Hi @Erin Blomert 

There is a open defect created today (12 October 2022) for this symptom.  It impacts advanced branching for Lookup Objects, Lookup Issues, and smart value expressions creating lists.

Please watch/mark as impacted here to see progress: https://jira.atlassian.com/browse/AUTO-179

Kind regards,
Bill

Erin Blomert
Contributor
October 13, 2022

Thanks Bill!  Good to know it's not an issue with my process and I can stop making myself crazy over it...

Like Bill Sheboy likes this

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events