Long Value converted to JIRA TimeTrack Value

Hey there,

I have calculated the difference between 2 Dates, and I got a long value. I want that value to become a String like a typical JIRA Time Track value (for example “2d 3h 45m”)
Is there any class which have a function that returns that by a given long value?

So long

Hi @M.Abdel-Mola,

Looked through the Java API for various Utilities and Formatters, I stumbled to JiraDurationUtils class. You can find more here Thought it might help. Let me know if id did :slight_smile:

Thanks!

Cheers,
Anne Calantog

2 Likes

Many thanks!

That is exactly what I was looking for :slight_smile:

1 Like