You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
Next: Root
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
The Atlassian Community can help you and your team get more value out of Atlassian products and practices.
I wanted to convert 1 Hr 45 minutes to days so i followed below steps
1) i converted 1 hr 45 min in minutes by using below :-
WITH _originalestimateM = (originalestimate/60)/1000 -- it is giving me 105 which is correct
2) Now when i try to convert minutes into days which is as per formula divide by 1440
WITH _originalestimateD = (_originalestimateM /1440)
it gives me 0 where as i wanted to decimal value which comes around 0.0729167 days
Is there a way to do it or any other way i can do it?
It seems like the division is being performed as an integer division, which discards the decimal part of the result. To ensure the result is displayed as a decimal value, you can cast the numerator or the denominator to a floating-point number (float) or a decimal number.
Updated formula:
WITH _originalestimateM = (originalestimate/60)/1000
WITH _originalestimateD = (CAST(_originalestimateM AS float) / 1440)
Regards
Oday
WITH _originalestimateD = (CAST(_originalestimateM AS float)/1440) :
is giving me error of Invalid Expression in cloud JIRA
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Jira Cloud Might not support the CAST function, we can try the 'ROUND' function instead
WITH _originalestimateD = ROUND(_originalestimateM / 1440.0, 7)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Okay, You can try to calculate the decimal value directly within the same expression:
WITH _originalestimateD = ((originalestimate / 60.0) / 1000) / 1440
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Nice to hear that,
Have a nice day
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.