Hi Everyone,
I've got a field for Days Open scripted and it works great - but I need a way to add to the scrip in order to stop the days accruing once an issue is closed.
Here's the current script
def durationMillis = new Date().time - issue.created.time
def days= Math.round((durationMillis / 1000 / 60 / 60/ 24) as Double)
What script can I add to make this stop the accrual?
(I've mentioned it before - I'm new to scripting in my admin work and am trying to learn more - this one is definitely evading me again)