Forums

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

Calculate Remaining Estimate

Muhammad Moazzam Hassan
Contributor
May 17, 2024

Hi,

I want to adjust the Remaining Estimate when the Total Hours field is updated. The Remaining Estimate will be.

Remaining Estimate = Total Time Spent in Hours - Total Hours

but the issue is if am using this smart value {{issue.timetracking.timespentSeconds}} / 3600 - {{issue.Total Hours}}h the rule is getting failed.

or if am using this smart value {{issue.timetracking.timespentSeconds.divide(3600)}} - {{issue.Total Hours}}h it is working but it is rounding up the value means if the value after division is 8.2 h it will show 8.00h.

The screenshot is attached as well can someone guide how can I calculate this?

image.png

1 answer

0 votes
Sebastian Boström
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
February 27, 2025

Hi Muhammad,

 

I'm not that great at smart values, but I think that I have an answer for this as I'm struggling with similar things. And I recon that you might already gotten an answer.

 

If you want to make a calculation with Smart Values you need to write it encapsulated with {{#=}} << Calculation >> {{/}}

Suggest an answer

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

Atlassian Community Events