Only close an issue if all related merge requests are merged
Problem to solve
If an issue has several merge requests related to it, as soon as the first merge request gets merged the issue is closed. It would make sense, IMHO, that the issue is kept open until all merge requests are merged/closed.
Further details
Our code is split into several repositories (+20) while we keep a single repository where all the issues are reported to.
When working on an issue, one might have to create several merge requests (i.e. some changes are needed on the front end, some functionality can go on one of the utility repositories and the templates need some touch up as well) and all of them are related to the very same issue.
The problem now is that as soon as the first merge request gets merged, the issue is closed while there is still some work to be done (merge the other merge requests) to get that issue closed.
Proposal
Prevent an issue from being closed if there are still merge requests/issues opened related to it.
What does success look like, and how can we measure that?
(If no way to measure success, link to an issue that will implement a way to measure this)