Groovy formula - JMCF Calculated duration field

Sandy Greenberg
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
January 22, 2024

Could someone please help me with a Groovy script to calculate the age of an issue for a custom field using the JMCF functionality?  This is on Jira Server if that's important.

 

"today's date" - "(Jira Field) created" = number of days

 

Thanks!

1 answer

0 votes
Suprija Sirikonda _Appfire_
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 Leaders.
January 23, 2024

Hi @Sandy Greenberg,

You can use the below Groovy script to get the number of days between issue created date and the current date:

new Date() - issue.get("created") 

Regards,

Suprija 

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events