Jira automation rule doesn't work correctly if user edits or deletes worklog

Just Me December 7, 2023

Hello,

I configured the rule that calculates the total of "Time tracking" on the epic level each time the user enters the value into the "Time tracking" field on its task. 

The issue is that this rule doesn't work correctly if the user edits or deletes the existing work log. For example, the user logs 5 min to the task. Epic "Time tracking" reflects the correct total: previous total + 5 min. Then the user edits this existing work log on the task to be 2 min instead of 5 min -- and the rule reflects it as + 2 min to the epic total, not - 3 min as expected. The same thing happens if the user deletes the work log on the task: the rule adds the value to the epic total rather than subtracts it.

The rule's configuration:

Rule_3.PNG

Rule_4.PNG

1 answer

0 votes
Antuan Sammak
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.
December 7, 2023

Hi @Just Me 

 

the way you set it up the log work for the parent is a SET not UPDATE, meaning it will replace it always with the new value.

i think the solution for your case is to use smart values here to sum up the existing value of parent time spent with the one being added on task

please check the below link for more information about using smart values in Jira with time related fields

https://support.atlassian.com/cloud-automation/docs/jira-smart-values-date-and-time/

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events