Forums

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

Worklog | Including last time spent in a task in the epic parent

Jorge August 6, 2024

Hello there,

I am creating a new rule through Automation for Jira plugging (in Data Center instance) trying to add up the time spent in a task (time that is being registered in this moment) in the epic parent also.

---ATTACHED IMAGE---------------

Example:

Epic Time Spent before the new worklog= 1d

New worklog is logged to one of its tasks = 2d

New Epic Time Spend should be = 3d

------------------

However the following rule add up all accumulated worklog on the task to the epic. 

Thank you all in advance,

Best regardsJira issue.png

 

 

2 answers

1 accepted

0 votes
Answer accepted
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.
August 6, 2024

Hi @Jorge 

When the trigger is Work Logged for the child issue and you also want to log that same work to the Epic parent, use this smart value and not the issue's worklog with the Log Work action:

{{worklog.timeSpentSeconds}}

 

Kind regards,
Bill

Jorge August 6, 2024

Thans for your comments, @Bill Sheboy 

You are right.

I have used the following smart value with the Log Work action and finally epic logs the correct value (not the accumulated)

{{worklog.timeSpentSeconds}}

 Now the point is, how could I change the Actor? Because this is being registered by Jira Administrator user (owner and actor of the rule). I cannot change it to "User who triggered the event".

Remember that it works in Data Center

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.
August 6, 2024

I do not believe it is possible to log work on behalf of another person, and I recall there are open suggestions to add that feature.

Like YY Brother likes this
Jorge August 8, 2024

Thank you @Bill Sheboy,

Imagine a scenario where you want to log time that belongs to other day. According to my rule, it is always being logged at {{now}}.

¿Do you know if it is possible to set the same date that was set in the Story?

Jiraerror.png

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.
August 8, 2024

To use the same value from the trigger, please enter the value {{worklog.started}} in the Date Started field when you log the work.

0 votes
Jorge August 6, 2024
YY Brother
Community Champion
August 6, 2024

image.png

Have you considered what if I delete a worklog on a task? 

Jorge August 6, 2024

Hello @YY Brother , thanks for you time

If I delete the historical worklog for the task and I load time for the first time I get the expected result.

But for the second register I get the accumulated sum of the task. 


 

Suggest an answer

Log in or Sign up to answer