Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Issue with automation doing remaining estimate = original estimate - time spent

rob_jeal September 10, 2024

I have some automation which seemed to work for a while doing the below. The issue that seems to be happening now is that the automation keeps cycling as it's seeing the remaining estimate field updating and then running again. 

WHEN

value changes for time tracking for edit issue

IF

{{timetracking.timespent}} does not equal Empty

THEN 

edit remaining estimate - 

{{#=}} ({{fieldChange.to}} - {{triggerIssue.fields.timetracking.timeSpentSeconds|0}})/60{{/}}m

Example of the cycling issue we're now seeing

Screenshot 2024-09-10 141453.png

 

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.
September 10, 2024

Hello @rob_jeal 

The Log Work feature will automatically reduce the Remaining Estimate when time is logged if there is a Remaining Estimate value on the issue where the time is being logged.

What is the reason behind forcing that through an Automation Rule?

rob_jeal September 11, 2024

Hi @Trudy Claspill  It was to capture changes to original estimate sorry. So if the original estimate is increased/decreased, the automation deducts time spent from the new original estimate, to provide the new remaining estimate.

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.
September 11, 2024

On the Rule Details page is this box checked, and if so was that a recent change?

 

Screenshot 2024-09-11 at 1.06.51 AM.png

That could cause the rule to be re-triggered because the rule itself is changing the time tracking data.

rob_jeal September 11, 2024

Thanks @Trudy Claspill that is ticked but not a recent change but maybe the issue has been going on longer than I thought! I'll test it with that unchecked.. Thanks

rob_jeal September 11, 2024

that seems to have worked, thank you!"

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.
September 12, 2024

Hi @rob_jeal 

Adding to Trudy's suggestions and your findings...

If that option to allow rule trigger was enabled for a while, perhaps it was selected incorrectly by a rule-writing person.  And thus their rules may be consuming your monthly, automation usage limit: https://support.atlassian.com/cloud-automation/docs/how-is-my-usage-calculated/#What-are-my-usage-limits

Please consider working with your Jira Site Admin to check usage and inventory all rules to determine if other rules have the setting enabled.  By default that option is disabled, and should only be used when you want the actions of one rule to trigger another.

Kind regards,
Bill

Suggest an answer

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

Atlassian Community Events