Automation - Log work on parent from trigger issue

Deleted user January 24, 2021

Hi, 

I'd like to set a rule that the log work from a sub task triggers a log work on the parent story. 

How do I use the time spend value from the trigger issue to the parent issue?

 

 

 

3 answers

0 votes
Ga Briel
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 16, 2024

You can create an automation rule :


1) When a field value changed component (use the "Time Tracking (Field")


2) Add a Component of type : New Condition 
select "Issue Fields Conditions"
is one of
Sub-task

 

3)  Add a Component of type : Branch rule / related issues
Set Parent in "Type of related Issues"

4) In the Branch add a new component : Edit Issue
Set the "Remaining Estimate  (System)" as field
Enter the following formula : {{#=}}{{issue.subtasks.remaining estimate.sum}} / 60{{/}}

 

Activate then this rule and when you update the time tracking of a subtask it will automatically recalculate the parent Remaining estimate with the sum of all subtask Remaining Estimateimage.pngimage.pngimage.pngimage.pngimage.png 

 

andre October 28, 2024

This works really well when you have a structure Epic -> Sub-Task. 
Do you know how to adjust it when you have a structure Epic -> Story -> Sub-task? 

So that when you do a modifiation on logWork at the level of sub-task the value on Epic will be also updated? 

 

Thank you for your support! 

0 votes
Bill Sheboy
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
January 25, 2021

Hi @[deleted] 

Please look at this example in the template library for how to sum up the sub-task original estimates.

https://www.atlassian.com/software/jira/automation-template-library/rules#/rule/1371692

You may then change the trigger to work logged and modify the edit to meet your needs.

Best regards,

Bill

0 votes
mogavenasan
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
January 24, 2021

Hi @[deleted],

You can use related issues to update the Parent issue. Next, you can use Automation action - smart values for the worklog values.

I hope that this helps!

Thanks,
Moga

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