Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Jira automation- set time remaining to 0 when closing a subtask

Edited

Hey, 


there is some way to set up a rule in the Jira automation that will change the time remaining to 0 when closing a subtask? 


I tried a rule like: 


When: issue transition to 'closed' then edit issue fields Original Estimate/Remaining Estimate to 0

 

and advanced setting like - 

{
"fields": {
"timetracking": {
"originalEstimate": "10m"
}
}
}

 

But it didn't work and got this error

EDIT ISSUE
Unknown fields set during edit, they may be unavailable for the project/type. Check your custom field configuration. Fields ignored -
Time tracking (timetracking)
No fields or field values to edit for issues (could be due to some field values not existing in a given project):
AT-9999

Thanks in advance

1 answer

0 votes
Florian PEREZ Community Leader Jan 07, 2022

Hello, 

Is there a specific reason you want to use automation instead of a postfunction?

I think you should consider looking into adding a postfunction in the closing transition that set the field value to want you want!  

 

Give it a try a give us some news!  

Hey 

Thank you for your answer, I wasn't familiar with post-function in the workflows, but I did give it a try and it worked so thanks for that. 

 

Correct me if I'm wrong' but adding a post-function to the workflow will affect every project that uses this workflow no?

I don't want to affect other projects and it would be nice to know how to do it in the automation rules anyway.

 

Thanks again 

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Apps & Integrations

Send an Email or Publish to Confluence - What should you do with your release notes?

Background When you hear the words ‘Release notes’, almost always you think of an unsolicited email from a software vendor. But I am here to tell you that from our data, sending release notes via E...

117 views 1 2
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you