Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,557,532
Community Members
 
Community Events
184
Community Groups

Trying to set remaining estimate to zero when a story is closed but its not working

Sreerampavankumar Govindarajula
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.
Aug 27, 2020

Using Jira v8.4.0 and trying to set story level remaining estimate to zero when its closed and its not working

 

Used Edit issue and JSON 

{
"fields": {
"timetracking": {
"remainingEstimate": "0",
"originalEstimate": "{{timetracking.originalEstimate}}"
}
}
}

But it errors as below as extracted from audit log. I added a comment fld at the end just to see if its getting values for originalEstimate and remainingEstimate and it does as I can see the values in the comment field

Edit issue

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

Comment on issue

Comment added to issue{{timetracking.originalEstimate}} {{timetracking.remainingEstimate}}

 

Also tried using system field "Remaining estimate" and it didnt work either.

1 answer

1 accepted

0 votes
Answer accepted
Sreerampavankumar Govindarajula
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.
Aug 27, 2020

I tried solving myself.

 

Looks like Jira automation cannot edit fields once the trigger is on an issue being closed as it perhaps doesnt find the object/fld anymore. So I had to add addl. action to transition the issue back to "Re-opened" status and edit the remaining estimate fld and then transition back to "Copy from trigger issue" status which is either closed/done in my case.

 

Also I leveraged edit issue fld "Remaining estimate" and didnt need to use smart value/JSON

@Sreerampavankumar Govindarajula did you end up setting up the JA specific for transitioning to Close, or is it a job that works on any transition?  I have the same exact problem trying to update a field, because our Closed status has  jira.issue.editable property set, and we don't want to remove it.  (and thus, by the time the trigger fires, the issue is closed, and uneditable).

I would prefer to find a way to temporarily change that property to do the editing, but I think your solution is better for containment to just editing that issue.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events