I am looking at creating a calculated scripted field in Script runner based on the Days:Hours:Minutes to resolution.
The have managed to do this calculation to based on the numbers of days, but not down to the hours and minutes.
return (issue.resolutionDate != null) ? String.format("%d day(s)",(int)((issue.resolutionDate.getTime() - issue.getCreated().getTime()) /(1000*60*60*24))) : "N/A" ;
Thanks in advance
You may do the similar with CelesteCS Math for Confluence, which allows any calculations in Confluence, including any manipulations with table data. Date parameters and functions, like NOW() and DATE() are supported.
Assume you have a table with three columns and three rows on your page – from A1 till C3, where row 1 is the header row. The sum calculation formula for rows 2 and 3 will be simple:
There is a plenty of other functions in the macro, so you may perform any calculations using formulas in EXCEL style.
Jira may be a staple part of your workday, but your colleagues, customers, business partners or an auditor might need information presented in a different format, that is easy to access and read. And...
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