How to automatacilly roll-up a delete of worklog to epic

Roi Angress August 12, 2020

Hi,

My goal is to create an automation that updates an epic automatically once "Logwork" of a subtask is deleted.

I have successfully created an automation that updates the epic's "Time Spent" field each time "Logwork" is created or updated in a subtask of the epic. BUT, when it comes to logwork deletion, the automation adds time to the "Time Spent" field of the epic instead of reducing it.

Any ideas?

Thank you very much!

1 answer

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.
August 12, 2020

Hi @Roi Angress 

Disclaimer that I have not tried this, and...

Have you tried using the Work Logged (deleted) trigger, and then using changelog to access the previous value?  Please look here for information about changelog use:

https://support.atlassian.com/jira-software-cloud/docs/smart-values-general/

 

Best regards,

Bill

Roi Angress August 16, 2020

Thanks for the answer! :)

How should I use the changelog smart value? can you shed some light regarding the issue?

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 17, 2020

Perhaps something like this to access the previous value for :

{{#changelog.worklog.timeSpent}}{{from}}{{/}}

You can see other examples on that documentation page I sent you.

Suggest an answer

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

Atlassian Community Events