It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

JIRA4: Custom DurationFormatter

Mikalai Mikalai Aug 17, 2011

Hi, Atlassian Community!

Could you, please, describe how custom DurationFormatter can be implemented and configured?

I need a duration formatter that will provide the ability to enter duration values like 1.5h(i.e with fractions) and will display durations in days and hours(the duration is less than 1d then duration will be displayed in hours, if more than 1d - in days). Our JIRA version is 4.0.2



1 answer

1 vote
Alexander Johannes Aug 22, 2011

JIRA uses JiraDurationUtils and its subclasses to format and parse durations. With access to the JIRA sources, you may be able to modify this code or inject your own DurationUtils instead. This would alter the overall duration handling in jira.

The other approach would be, that you write your own custom field, which handles your specific input. But this solution would not affect the standard functionality like estimated time or time tracking.

Suggest an answer

Log in or Sign up to answer
This widget could not be displayed.
This widget could not be displayed.
Community showcase
Posted in Off-topic

Disney Live Action Reboots: Are you for or against?

Happy Friday Everyone! Today marks the international release of Disney's live action version of the animated classic Aladdin. I know that this movie was met with some controversy of over cast...

148 views 21 9
Join discussion

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you