Hello!
I’m using script in my plugin, that is sending approval to issue:
customerContextService.runInCustomerContext(() -> {
approvalService.answerApproval(approverUser, approval, adt);
}
I got the customer (another Jira stand) who got the error on that action: “Uncommitted database transaction detected. Closing…” on Jira Data Center 9.12. Issue integrity is broking at this moment: status seems changed, but transitions are not matching to status.
I cannot reproduce it. Customer tried different projects, even empty (without automations), but the problem is still there.
The same script outside the plugin (in scriptrunner console/mail handler) is working fine.
What can cause the problem?