Hello,
I have the following automation in my project:
The automations ensures that the custom field "Detail Sum Effort CON" at the Epic level is updated whenever the value of the custom field "Detail Effort CON" changes at the Story level.
Automation Workflow:
Trigger:
The rule is triggered when the field "Detail Effort CON" of an issue is modified.
Conditions:
The issue must be of type Story (Issue Type ID: XXXX).
The issue must be linked to an Epic.
Actions within the Epic Branch:
Lookup Issues: A JQL search is performed to find all Stories linked to the same Epic.
The JQL query: "Parent" = {{issue.key}}
This means it searches for all Stories that have the same Epic as their parent.
Summation & Updating the Epic Field:
The field "Detail Sum Effort CON" in the Epic is updated with the sum of all "Detail Effort CON" values from the retrieved Stories:
{{lookupIssues."Detail Effort CON".sum|0}}
If no Stories are found, the value is set to 0.
Potential Weakness of the Automation:
If a new Story is added to an Epic, the rule only triggers if its field "Detail Effort CON" is modified.
If a Story is deleted, there is no direct trigger to update the sum.
So far I have not found a working solution for these questions and hope that you can help me.
Solutions:
A separate rule with the "Issue Created" trigger to recalculate the sum when a new Story is added to an Epic.
A seperate rule with "Issue deleted from Epic" trigger to recalculate the sum when a Story is deleted from the Epic or deleted from the project.
Regards,
Joscha
