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.
Hey Community mates! Claire here from the Software Product Marketing team. We all know software development changes rapidly, and it's often tough to keep up. But from our research, we've found the h...
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