Forums

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

JIRA Automation - Using .min and .max not returning results for lookupissues

Michelle S May 23, 2025

I have a rule following these instructions, but {{lookupissues.<date>.min}} and {{lookupissues.<date>.max}} are both returning an empty value.  When I remove .min and .max, I get the 3 date values for the 3 children in the parent. 

 

Is there currently an issue with .min and .max?

supertheme.png

 

 

 

2 answers

1 accepted

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 Leaders.
May 23, 2025

Hi @Michelle S 

Just to confirm, are the fields you are using from advanced planning: Target Start and Target End?

If so, I believe those fields are text (and not date) values when accessed in an automation rule, and so the min / max functions will not work.  The fix is to convert them with the toDate function before the min / max functions:

{{lookupIssues.customfield_10022.toDate.min}}

and

{{lookupIssues.customfield_10023.toDate.max}}

 

Kind regards,
Bill

Michelle S May 23, 2025

Hi @Bill Sheboy  yes they are Target Start and End. And that fixed it. Thank you soooooooooooo much!!!!!!!

Like Bill Sheboy likes this
Michelle S May 23, 2025

@Bill Sheboy While on the same topic, is there a way to find which parents have Target Start dates that start after child Target Start and parents with Target end dates that end before child Target End dates?  I'd like to run the JIRA automation to replace them only on affected ones but everywhere I look there isn't a jql that can do that

Michelle S May 23, 2025

Actually, just found the answer I was looking for in a message you wrote here https://community.atlassian.com/forums/Jira-questions/how-to-set-list-of-values-to-smart-variable/qaq-p/2565674

but create a list from the branch to use in another branch...

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.
May 23, 2025

Well done finding your own answer to that one!

Using rules is all about learning and experimentation :^)

 

0 votes
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.
May 23, 2025

Hi @Rohan 

Please review the community guidelines for disclosing sources when posting bot / AI-generated content:

https://community.atlassian.com/forums/custom/page/page-id/rules-of-engagement

Kind regards,
Bill

Suggest an answer

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

Atlassian Community Events