The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

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

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

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 Champions.
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

DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
FREE
TAGS
AUG Leaders

Atlassian Community Events