Is this possible for me to get the resolution date or closure date, to compare it with system date ?
If there is a delay of 24 hours between them, I would lik to refuse the reopening of the issue ...
Thanks a lot
Thank you Henning for your answer. I've tried this, but unfortunately it does not work. Perhaps because the resolution date is not specified like you think about.
I thought that a date was related to every step in JIRA... is this really ?
I mean :
- a creation date when you create an issue
- an update date, when you
- a resolution date,when you arrive at Resolved step
- a closure date, when you achieve the workflow, arriving at Closed step...
If an issue is resolved the resolutionDate should be defined. You should try to debug the script like so.
Date now = new Date() log.error "now: $now" log.error "resolutionDate: $issue.resolutionDate" long elapsedTime= now.getTime() - issue.resolutionDate.getTime() log.error "elapsedTime: $elapsedTime" boolean res = elapsedTime< 172800000 && elapsedTime>= 0
Take a look into catalina.out to see the output.
Badges are a great way to show off community activity, whether you’re a newbie or a Champion.Learn more
Hi Atlassian Community! My name is Shana, and I’m on the Jira Software team. One of the many reasons this Community exists is to connect you to others on similar product journeys or with comparabl...
Connect with like-minded Atlassian users at free events near you!Find a group
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no AUG chapters near you at the moment.Start an AUG
You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs