Why is an automation targted at the remaining estimate is affecting the original estimate

Jacques Dussault
Contributor
June 17, 2024

 

On a scheduled automation nightly, on specific issues (JQL), the automation reduces the remaining estimate by 10% of the original estimate (and so by the end of a 10 days sprint, to 0h) 

This is the JSON I use :

{ "fields": { "timetracking": { "remainingEstimate": "{{#=}} {{issue.timetracking.remainingEstimateSeconds}} /3600 - ({{issue.timetracking.originalEstimateSeconds}} * 0.1) / 3600 {{/}}h" } } }

 

The issue is : for some reasons , it also edit the original estimate with the same rule and I can not find why it is doing that.

Any idea?Screenshot 2024-06-17 144822.png

2 answers

1 accepted

1 vote
Answer accepted
Jacques Dussault
Contributor
June 18, 2024

After review by the Atlassian Support and Dev Team, there is actually a bug. 

They provided simple workarounds .

You can find all the details here :  https://jira.atlassian.com/browse/AUTO-1328 

2 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.
June 17, 2024

Hi @Jacques Dussault 

First thing I notice is your rule's Edit Issue action is trying to edit the Remaining Estimate field twice:

  • once by selecting it from the dropdown list
  • and once in the advanced edit with JSON.

Only one of those may be used in a single edit action for the same field.  

Please try removing that and retesting to observe the impact, perhaps with some test issues.  (You could temporarily modify your trigger's JQL to only include testing issues to help debug this symptom, and then revert it once fixed.)

Kind regards,
Bill

Jacques Dussault
Contributor
June 17, 2024

Thank you for flaging the double edit. I corrected that. Sadly, that does not seem to be the reason why the original estimate gets updated too.

I'm already working on a restricted amound of issue (2) and theyr are both behaving the same way.

 

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.
June 17, 2024

Please post an image of the audit log details showing the rule execution and of the issue's change history showing the changes.

 

And, what changes in value do you notice in the Original Estimate field when the rule runs?

Suggest an answer

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

Atlassian Community Events