Misc Custom Field Duration Output Format

Josh Costella July 9, 2018

My current formula:

<!-- @@Formula:
if (issue.get("customfield_12225")==null || issue.get("customfield_12224") == null)
return null;
return (issue.get("customfield_12225").getTime() - issue.get("customfield_12224").getTime()) / 1000 / 3600 / 24; -->

The output is just a simple number. How can I get it to show in DD,HH,MM format?

Example: 7d, 4h, 3m

The fields in the formula are Date/Time fields.

1 answer

1 accepted

0 votes
Answer accepted
Josh Costella July 10, 2018

I was able to easily accomplish this with Power Custom Fields from cPrime.

Suggest an answer

Log in or Sign up to answer