I want to sum the values filled in the "original estimate" field of each subtask created from a Story, and see the sum in the "original estimate" field of this Story (main/parent issue).
I'm trying to configure a rule for that, but in the first step of the rule when you select the "Field value changed", I can't select the "Original Estimate" field because it isn't appear on the dropdown options.
I have seen other topics about this problem but I tried unsuccessful.
Can you help me please? It's easy to configure rules for another fields but it's going very frustrating with this one.
Hi @Laura Cagüe -- Welcome to the Atlassian Community!
For a question like this, please post an image of your complete automation rule, images of any relevant actions / conditions / branches, an image of the audit log details showing the rule execution, and explain what is not working as expected. Those will provide context for the community to offer ideas. Thanks!
Until we see that information...
To have the Story's Original Estimate include the value from all of the subtasks, there are several cases to handle:
Let's focus on the first two cases. Your rule could sum the values from the sub-tasks with this expression:
{{issue.subtasks.timetracking.originalEstimateSeconds.sum|0}}
For the second case when you want to check for a change to Original Estimate, in the Field Value Changed trigger, select the generic Time Tracking entry to include that one.
Kind regards,
Bill
Hi @Laura Cagüe ou can try this:
Instead of using the "Field value changed" trigger, use the "Issue Created" and "Issue Updated" triggers. This will ensure the rule runs whenever a subtask is created or its original estimate is updated.
Add a condition to check that the issue type is "Sub-task." This ensures that the rule only applies to subtasks.
Use the "Lookup Issues" action to find all subtasks linked to the parent story. You can use JQL like parent = {{issue.parent.key}}
to fetch all subtasks.
Action: Add a "Branch rule / related issues" action to loop through the subtasks found in the previous step. Use the "Edit Issue" action within this branch to update a custom field in the parent issue with the sum of the "Original Estimate" fields of all subtasks. OR If you're using Jira Cloud, you can use smart values like {{lookupIssues."Original Estimate".sum}}
to calculate the sum of the original estimate fields.
After calculating the sum, use the "Edit Issue" action to update the "Original Estimate" field of the parent story with the calculated sum.
If the "Original Estimate" field still doesn't appear in the dropdown, you might need to Ensure the field is available and visible on the relevant screens for both subtasks and the parent story. Also Check if any permissions or field configurations are restricting access to this field.
Hope this will help!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Please stop posting content from bot / generated tools. This answer cannot work as once inside of a branch, issues outside of the branch cannot be updated.
Kind regards,
Bill
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.