Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

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
TAGS
atlassian, atlassian government cloud, fedramp, webinar, register for webinar, atlassian cloud webinar, fedramp moderate offering, work faster with cloud

Unlocking the future with Atlassian Government Cloud ☁️

Atlassian Government Cloud has achieved FedRAMP Authorization at the Moderate level! Join our webinar to learn how you can accelerate mission success and move work forward faster in cloud, all while ensuring your critical data is secure.

Register Now
AUG Leaders

Atlassian Community Events