I have two custom date fields (start and end). I need to first calculate the duration (end-start) and then format that value like this: d hh:mm:ss
Even if the duration is long, it would still be the above format so no months or years, just days hh:mm:ss. If the duration was shorter than a day, the format would be hh:mm:ss.
I need to write the value to a text field. So, the resulting text field would look something like this: 2 12:23:54 (2 days, 12 hours, etc)
I need to include this code in Post Function --> Scriptrunner. Does anyone have a script handy that would help with this task?
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.