Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How do I get to rollup the 'Original estimate' from Subtasks to the Parent?

Sreeram Karthik September 28, 2022

I'm working with a Team-managed Jira project, and trying to setup an automation rule where the system should add up all the 'Original Estimate' field values of Subtasks (under a Parent) and update that sum value in their corresponding Parent's 'Original Estimate' field.

  1. I made sure that the 'Estimation' is in 'Time' for this project.
  2. Followed setting up the below automation rule (Screenshot attached)

 

But still, the parent 'Original Estimate' remains 0h.

 

 

Screenshot 2022-09-28 at 5.19.26 PM.png

 

 

What am I missing? Please advise

1 answer

1 accepted

1 vote
Answer accepted
Trudy Claspill
Community Champion
September 28, 2022

Hello @Sreeram Karthik 

What does the Audit Log for the rule say? Is the rule being triggered? Are the conditions in it being met? Can you show us the Audit Log output for the rule?

Sreeram Karthik September 28, 2022

I tried by changing the estimates for a subtask. The audit log for this rule says that issue did not match the condition. What am I missing?

Here is the screenshot. Hope this helps 🤞🏻

Screenshot 2022-09-28 at 10.55.43 PM.png

Trudy Claspill
Community Champion
September 28, 2022

This is indicating that your first condition (the Advanced Compare) is not being met by the issue that triggered the rule.

I like to insert Log Action actions to log information to the rule Audit Log when I'm debugging a rule. I use that to log values that I'm trying to use in Conditions and in Edit actions to confirm the values are what I expect.

I created just part of your rule with a Log Action to see what the value of {{fieldChange.field}} is when I change an Original Estimate value. It appears that you have the wrong value for your comparison as the field name is not what you expected.

Screen Shot 2022-09-28 at 11.07.13 AM.png

Sreeram Karthik September 28, 2022

You're a Saviour!

Thank you for this, Trudy. Following your advise, I added the log and realised that the variable I added is incorrect.

All this time I was using timeoriginalestimate. After debugging with the help of this log, I corrected it as timeestimate and the rule got executed successfully!!

Here's a full view of my rule and the audit log (success message). This helped me achieve what I'm looking for. Individual 'Original estimate' values from the sub tasks are all getting added and displayed at the Parent level now.

 

Screenshot 2022-09-29 at 12.53.19 AM.png

Sreeram Karthik September 28, 2022

However, this one is taking 4-5 seconds to get executed though. Not sure if this a usual automation behaviour. All my other rules run within a second.

 

This doesn't impact anything majorly but still please let me know if I'm doing something wrong and there's a way this can be optimised further

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events