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

Iterating through lookupissues but issue.created doesn't update

Colin_Turner January 21, 2025 edited

Hi all, 

The text in the image results in the value from the first term for the first listed item being repeated for every other item down the entire list. So, if the first item was created 47d ago, they will all say that, incorrectly -- but their keys and summaries are fine. If I replace that term with simply "{{created}}", it's updated per item as expected. 

Can you help get this working as intended? TY!

Screenshot 2025-01-21 at 11.56.26 AM.png

Here's the entire automation:

Screenshot 2025-01-21 at 12.28.50 PM.png

And here's the audit log:
Screenshot 2025-01-21 at 12.31.10 PM.png

And output:

Screenshot 2025-01-21 at 12.32.29 PM.png

1 answer

1 accepted

2 votes
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.
January 21, 2025

Hi @Colin_Turner -- Welcome to the Atlassian Community!

This symptom is a known defect where when the diff() is used in a lookup issues iterator the first issue's data is always used: https://jira.atlassian.com/browse/AUTO-334

Kind regards,
Bill

Colin_Turner January 21, 2025

Thanks!

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.
January 21, 2025 edited

For the diff() you are using, please try reversing that expression:

{{#lookupIssues}}
* {{key}}: {{created.diff(now).days}}
{{/}}

I recall a different defect related to using {{now}} first in diff() calls.

 

Colin_Turner January 24, 2025

Bill: it worked. I'm still polishing, but this screenshot from Slack is already running into my "stretch goals" for this Cross-Team Dependency Information Radiator automation -- thank you!

Screenshot 2025-01-24 at 1.04.01 PM.png

Like • Bill Sheboy likes this
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.
January 24, 2025

Awesome, and well done!

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
TAGS
atlassian, team '25, conference, certifications, bootcamps, training experience, anaheim ca,

Want to make the most of Team ‘25?

Spend the day sharpening your skills in Atlassian Cloud Organization Admin or Jira Administration, then take the exam onsite. Already ready? Take one - or more - of 12 different certification exams while you’re in Anaheim at Team' 25.

Learn more
AUG Leaders

Upcoming Jira Events