Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Sorting using Lookupissues

Tony Georgiadis June 25, 2025

Hey community, 

I'm creating an automation that will be manually triggered on each Epic, and which will then loop through children issues of this Epic, sort them by a custom field (ASC) - in our case 'Start Date', return the top value of the custom field (the oldest date), and then edit the Epic field to that value. 

I've managed to loop through children issues correctly, but the sorting lookupissues code returns null.

Trying to do this by creating a variable
oldestDate = {{#lookupIssues.sortBy("customfield_18559")}}{{first.customfield_18559}}{{/}}

Do people have any thoughts or ideas why this is not working, and what could pontetially be the fix?

Thanks in advance.

Tony
{74F54089-0F52-4E18-B271-4D755E543A0B}.png

2 answers

1 accepted

0 votes
Answer accepted
Tony Georgiadis June 25, 2025

Found a fix - 

{{lookupIssues.customfield_18559.min}}

 

This returns the correct result!

0 votes
Mohamed Benziane
Community Champion
June 25, 2025

Hi,

In the JQL try to add the order by keyword

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