Convert Remaining Estimate time from Milliseconds to hours/days

Tayyab Bashir Community Champion Jul 25, 2017

Hi, 

I am using the java api to get remaining estimate time from an issue and all its linked issues. 
Following is the api I am using with the method getEstimate()

https://docs.atlassian.com/jira/7.1.9/com/atlassian/jira/issue/Issue.html#getEstimate--

This returns me the time in milliseconds, but not as expected. 

For e.g. if an issue has remaining estimate of 1 days, it would return that as equivalent of 28800 milliseconds. 

I want to know if there is a conversion formula for this? 
because right now it seems that 1 day = 28800 ms, which cannot be correct (mathematically)

1 answer

1 accepted

This widget could not be displayed.
Warren Levy Community Champion Jul 26, 2017

Hi Muhammad

Just to correct you, the API returns many time based values in seconds, not milliseconds.

It is also based on how many hours your set up of Jira has for a day e.g. we've set the day as 8.5 hours, so 1 day would return 8.5 * 3600 = 30600 seconds (where 3600 is 60 minutes in an hour and 60 seconds in a minute).

If you're getting 28800 seconds, that is equivalent to an 8 hour day.

I hope this helps

Warren

Suggest an answer

Log in or Sign up to answer
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Posted yesterday in New to Jira

Are you planning to trial, or are currently trialling Jira Software? - We want to talk to you!

Hello! I'm Rayen, a product manager at Atlassian. My team and I are working hard to improve the trial experience for Jira Software Cloud. We are interested in   talking to 20 people planning t...

78 views 1 0
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you