The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

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

Finding the largest number using Automation

Dominic Mercorelli
April 17, 2023

All, 

I am in need of run an automation task, that uses a JQL that returns all my epic within the last six months. Then I want to be able to increment through those epics, in order to find the largest number that is contained in a specific field.

FYI, this field is a short text field, as I don't want the commas to be shown. 

What would be the best way to go about doing this?

1 answer

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

0 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 Champions.
April 17, 2023

Hi @Dominic Mercorelli 

Please try using the Lookup Issues action with JQL to access your issues, and the max function on your field: {{lookupIssues.myCustomField.max}}

To possible limits of this technique are Lookup Issues can only access up to 100 issues, and you note using a short text field (rather than a numeric field)...so there could be sort-related impacts.

Kind regards,
Bill

DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events