I'm having trouble trying to get this automation to work:
To ensure that the custom field Total Project Estimate field on an Idea ticket is automatically updated whenever the Original Estimate field of any linked Task or Story is modified. This automation should:
Track Time Changes: Monitor changes to the Original Estimate field on Task and Story tickets in the Execution Project.
Sum Estimates Across Linked Issues: Sum up the Original Estimates for all Tasks and Stories linked to the Idea via the "is implemented by" or "Implements" link type.
Update the Idea Field: Update the Total Project Estimate field on the linked Idea ticket in the Idea Project with the cumulative sum (in hours) of all linked Task/Story estimates.
Technical Workflow:
Trigger:
- When the Original Estimate field is updated on a Task or Story in the Execution Project.
Branch to Related Issues:
- Identify the linked Idea ticket using the relationship type "is implemented by" (from the Idea's perspective) or "Implements" (from the Task/Story's perspective).
Calculate the Total Estimate:
- Aggregate the Original Estimates from all linked Task and Story tickets that are connected to the Idea.
Update the Idea Field:
- Update the Total Project Estimate field on the linked Idea ticket with the aggregated total, converted from seconds to hours.
Key Considerations:
Cross-Project Linking:
- The automation must handle issues across two projects:
- The Idea Project (where Ideas are stored).
- The Execution Project (where Tasks and Stories are created and updated).
Link Type Directionality:
- The relationship between the Idea and the Task/Story must be clearly defined:
- From the Idea’s perspective: "is implemented by".
- From the Task/Story’s perspective: "Implements".
Field Accessibility:
- The Total Project Estimate field must be editable on the Idea ticket.
- The automation actor must have the necessary permissions in both projects.
Error Handling:
- The automation should gracefully handle scenarios where:
- No linked Idea exists for a Task/Story.
- The Original Estimate field is missing or blank on certain issues.
Example Scenario:
An Idea ticket (IDP-1) in the Idea Project is linked to three tickets in the Execution Project:
- A Task (EP-101) with an Original Estimate of 8 hours.
- A Story (EP-102) with an Original Estimate of 6 hours.
- Another Task (EP-103) with an Original Estimate of 4 hours.
A user modifies the Original Estimate on EP-102 to 10 hours.
The automation triggers and calculates the new total:
The Total Project Estimate field on IDP-1 is updated to reflect 22 hours.
Automation Rule Structure:
- Trigger: Field Changed – Original Estimate (Tasks/Stories).
- Branch: Related Issues – Linked via "Implements" or "is implemented by".
- Action 1: Create Variable – Aggregate Original Estimates.
- Action 2: Update Field – Total Project Estimate on the Idea.
Here is the automation:
