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

Automation Error - find the parent link of epics

nessie.liu October 7, 2023

I met a problem when I set the initiative due date by looking up all epics in this initiative, see below:

My Automation rule runs correctly and I got what I want, I set a scheduled job to run all the epics and find the Parent Link - initiative, then I set the initiative due date by looking up the max due date in epics.

The problem I met is when I run the job for all epics and try to find the corresponding initiative, some with initiative runs exactly what I want, but some of epics without initiative, in this case, Automation rule will fail and notify me by email which is quite annoying.

Can I add any step that even some epics don't have initiative, this Automation can still run successfully and not alarm me by email?

 

Untitled picture.png

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 7, 2023

Hi @nessie.liu 

I am assuming the JQL for your Scheduled Trigger is only finding the epics which are not completed.  Is that correct?

Back to your question...

First thing, there is no need for that Re-fetch Issue action so I recommend removing it.  That action is needed for two cases: immediately after the Issue Created trigger to slow down a rule, and when an issue is edited by a rule and you want to use the updated information later in the rule.

Regarding the error you see, that it saying when the scheduled trigger provides an epic without an initiative it cannot work.  The fix for that is to put an advanced compare condition immediately before the branch and test that the parent field is not empty.

Kind regards,
Bill

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
PERMISSIONS LEVEL
Product Admin
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