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.
Atlassian Summit is an excellent opportunity for in-person support, training, and networking.Learn more
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