I have a script which I would run from the console to move an issue from DONE to IN PROGRESS , as we have restricted users from moving an issue out of Done.
For now I am able to move the issue and clear the resolution, but unable to clear the Resolution Date, it still shows the date when the issue was last moved to DONE. Is it possible to clear the resolution Date as well ? But the resolution dates gets updated when I try and move the issue again to DONE
I have below section of code to clear the resolution,
if (issue.getResolution() != null) {
log.debug("Clearing the resolutionfield")
issue.setResolution(null)
issue.setResolutionDate(null)
issueManager.updateIssue(currentUser, issue, EventDispatchOption.DO_NOT_DISPATCH, false)
}