Jira Automation - I have to update "Time Remaining" to zero when a sub-task is moved to Done

Hari February 12, 2021

When I move a sub-task to "Done" Status - automation should log the remaining hours time and update the field to zero. Appreciate help and guidance on this. thanks in advance. 

1 answer

1 accepted

1 vote
Answer accepted
Trudy Claspill
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
February 12, 2021

Hello @Hari 

Welcome to the community.

Have you reviewed the documentation for the Automation feature?

https://support.atlassian.com/jira-software-cloud/docs/automate-your-jira-cloud-processes-and-workflows/

I was able to create this rule very quickly. It is not complicated.

Screen Shot 2021-02-12 at 4.47.09 PM.png

Hari February 15, 2021

Hi Trudy, Thank you very much for your help. I tried with this, but the hours are not being logged to the work log. Not sure, if there's any thing I should double check. 

Trudy Claspill
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
February 15, 2021

Hello Hari,

Was the Remaining Time set to zero?

Setting Remaining Time and logging hours are two different things. How much time do you want to automatically log?

Like Hari likes this
Hari February 16, 2021

Thanks Trudy,
The idea is that I need to add/log the hours in "Remaining estimate" to "Time Spent" . then I have to make "Remaining Estimate" to zero as the task is completed. 

Trudy Claspill
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
February 16, 2021

In the Automation feature there is an Action for Log Work, but it seems to require an explicit and static amount of time to be logged. 

I have not worked extensively with the Automation feature, but I found this old post on the predecessor product where the participants talked about using the Edit Issue action and JSON to set the remaining time estimate and to log work.

https://community.atlassian.com/t5/Jira-Core-questions/How-to-change-timespent-with-an-automation-rule/qaq-p/401843

I'm not sure if the specific fields are all still supported and referenced as described in that post, but you could experiment with it and see what works.

Like Hari likes this

Suggest an answer

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

Atlassian Community Events