Fix rewriting issue references with group milestones
What does this MR do?
This MR fixes rewriting some references when moving an issue to another project.
Does this MR meet the acceptance criteria?
-
Changelog entry added, if necessary -
Tests added for this feature/bug -
Has been reviewed by Backend
What are the relevant issue numbers?
Closes gitlab-org/gitlab-ce#37746
Edited by username-removed-128633