I have a formula that i must multiply a custom field number by the original estimate , i find problem because the original estimate have not the number type
so i need to convert it.
The original estimate is not a "duration", it's a number. Measured in milliseconds, so if you want it in minutes, you need to convert it with
issue.getOriginalEstimate() / 60,000
For hours, divide again by 60. For days/weeks though, again divide, but remember to take into account your time tracking settings (1 day is 8 hours, not 24)
Note - that call above should return a long number if I remember right, but I think it's ok to multiply a long with a double?
using the smart values
it works when the sum is an integer, but doesnt when it's real
ex : 1 + 1 + 3 + 2 shows "1d" in the original estimate
or 1.5 + 1.5 + 2 + 1 shows 6h
but when i put 1.5 + 1 + 2 + 3 the rule doesnt execute
Literally feed it a number. The rest API only takes numeric data (I thought it was milliseconds because that's what I see in code elsewhere). 4.5 is likely to be 4.5 hours, but you'll see that when you look again at the issue. Whatever unit it is expecting, it will be consistent.
when i add 0.5 to 4.5, it's working and showing 5hours, also if i add 2.5 to 4.5 it shows 1d (as i've set 1day=7hours in the Timetracking settings).
However, i want to have the 4.5 or whateaver (1.75 hours ...etc.) . But it's frustrating because it's not working!
Is it a bug ??? do i have to report it ?
Thank you again for you answers, fixing this problem will have an impact in our Jira projects.
Connect with like-minded Atlassian users at free events near you!Find an event
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.Host an event
You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events