Forums

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

Display Calculated (scripted) Duration Field in days

Teressa Reed
Contributor
September 29, 2021

I need to display the difference between a custom date and the created date in days, but it's displaying in minutes unless I specify as "hour", in which case it displays in hours.

Here's the script:

secondsBetween(issue.get("Code Review Actual Date"), issue.get("created"), "day")

 

Is this possible?

1 answer

0 votes
Martin Bayer _MoroSystems_ s_r_o__
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
September 29, 2021

Hi @Teressa Reed sorry, I never used this App, but I checked the documentation and it looks like you can adjust velocity template to display the value in required format:

https://innovalog.atlassian.net/wiki/spaces/JMCF/pages/467501057/Calculated+Scripted+Duration+custom+field+type#Calculated(Scripted)Durationcustomfieldtype-CustomizingthedisplayoftheCalculatedDurationcustomfieldvalueontheissueview

Teressa Reed
Contributor
October 1, 2021

Thanks for the info. I haven't had a chance to give it a try, but I plan to work on it again on Monday and will let you know how it goes.

Thanks again,

Teressa

Suggest an answer

Log in or Sign up to answer