Can I Update the time tracking 'Time Spent' according to the time spent in the child issues?

Daniel Velkov
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
June 18, 2024

Hello,

Is there any way with automation rules to update the 'Time spent' field of the epic to reflect the sum of the 'Time Spent' fields of each of the subtasks and other issue types that are children of the epic?

I have gotten it to reflect the original estimate and remaining original estimate but cannot update the time spent field as it gives me this error:

 

"Setting the Time Spent directly is not supported."

 

Example of what i want:
example.png

 

Is that possible?

I do not want additional work logs to be added to the epic, just the 'Time Tracking' field to reflect the sum of the time tracking of the child issues.

1 answer

0 votes
Lígia Zanchet
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
June 20, 2024

Hello Daniel

Welcome to our community.
The only way to achieve it is by using automation for Jira

For the automation rule, this community post is helpful, particularly the first response from Michael Marriott that shows how he sets it up for subtasks to tasks 

 

Screen Shot 2022-04-04 at 17.49.42.png

Action is: #=issue.subtasks.original estimate.sum / 60{{/}}

Then,

Created this rule for changing the Epic Estimate when Story estimate changes

Screen Shot 2022-04-04 at 17.42.57.png

In the last action step I used:

#=lookupIssues.original estimate.sum / 60{{/}}

Make sure you allow the first rule to trigger the second rule by setting;

'Allow Trigger' in the rule details of the second (Update Epic) rule

Screen Shot 2022-04-04 at 17.52.14.png



Hope that helps!

Helen McSparron
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
October 31, 2024

The above response is for Original estimate, not Time Spent. Can you confirm this solution does not work for Time spent 

Lígia Zanchet
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
October 31, 2024

Hello Helen

The field Time Spent is part of the time tracking feature.

Thanks

Suggest an answer

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

Atlassian Community Events