Forums

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

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
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
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
Contributor
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