How to create custom field with "Days Hours Minutes" format

Basavaraj Sangote March 23, 2023

How to create one custom field which should pick the time and display in "Days Hours Minutes" format, is this possible?

1 answer

0 votes
prajakta_desai March 23, 2023

Hi @Basavaraj Sangote ,

 

For this you can use the prettyPrint function in your automation.

 

{{issue.created.diff(now).prettyPrint}}

 

returns 

42 days 2 hours 22 minutes 29 seconds 

 

 

Regards,

Prajakta

Boyd Hong August 24, 2023

Hi Prajakta,

I'm using two custom fields which are both "date time picker" type, when i compare two fields by using Diff function with prettyPrint, somehow it returns only hours and minutes for example; 1 hours 23 minutes rather than 1 hours 23 minutes 36 seconds

 

Is it expected behavior? 

 

Thanks,

Boyd

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
FREE
TAGS
AUG Leaders

Atlassian Community Events