Change of required approvals does not affect existing issues - approval count out of sync
What we did:
We added an approval. On create new issue a postfunction sets the reporter as approver:
...
def reporter = missue.getReporter();
HashSet<ApplicationUser> approvers = (HashSet<ApplicationUser>) missue.getCustomFieldValue(approversField);
if (approvers == null) approvers = new HashSet<>();
if (!approvers.contains(reporter))
approvers.add(reporter);
missue.setCustomFieldValue(approversField, approvers);
...
The approval at the workflow status was set per default to "All approvals" which was fine, since we had no representative regulations activated – the Approver field hosted no project-context.
Meanwhile the representative regulations became mandatory for some projects:
It seams, that the approval-count can’t be modified once the ticket is in approval?
We tried several things, again with no effect:
We’re running out of options and are in serious need of help. If you need any further information, please don’t hesitate to contact me.
We need this problem solved shortly and the knowledge base holds no solutions, only more questions ☹
Regards and looking forward to hearing from you (soon),
Birgit Küntzel