Epic progress calculations - child delete

Kaysaff Tal December 12, 2024

Hi ,

I have a custom field (text) call Progress. it calculated {{done_issues}}/{{issues}}*100. simple calculation.

I monitor the issue delete triger and could find the issue.parent.key with no problems.

caluculate: doneIssue

calculate: total issuess.

calculate progressPercentageString - no problem

I can use a releated branch as the trigger issue is deleted. and I can find a key to update the epic.

I Tried lookupIssues, Advance branching,JQL and all the combination could not find how to update the parent epic

image.png

1 answer

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.
December 12, 2024

Hi @Kaysaff Tal 

This symptom is from a built-in, hidden behavior of branching on JQL: it automatically adds JQL to exclude the trigger issue to prevent errors / looping situations.  And so that added JQL fails because the trigger issue was deleted.

The fix is to use branch on Parent instead as the automation engine "knows" there is zero-or-one issue to branch to, and it is not the trigger, so it doesn't add the JQL behind the scenes.

Kind regards,
Bill

Kaysaff Tal January 21, 2025

@Bill Sheboy It works! perfectlly

 

Like Bill Sheboy likes this

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