Tickets that are closed/resolved get reopened when user becomes inactive

Hi guys, if anyone has written a listener like this, or post function, I would really appreciate it.

So for the signature issue type, we use a standard subtask workflow, however, we do have a script that re-assigns the issues, if the reporter/assignee’s account becomes inactive.

Can anyone help me adapt it for only issues that are not resolved/closed?

Thank you in advance!

Hello Nora,

if i understand your problem, the only thing you need is to verify issue status while you iterate over a set of assigned issues. For this, you can use standard method issue.getStatus() and ideally compare it by its category status.getStatusCategory() and do not reopen it when it is in StatusCategory.COMPLETE.

Hope it helps.
Kind regards,