Move epic to another group

Problem to solve

I’m migrating a gitlab.com subgroup to a top-level group. I would like to move my epics. I was happy to find the quick action /move for the epic. It works but not for all epics. For some I get 500 error. It’s difficult to guess what is it about. Are there any prerequisites to move an epic?

I am the owner of both groups and the author of the epic. At first, I thought it could be the child items, but after removing them, the same error occurs.

The fact that the epic is closed doesn’t matter, because another closed epic moved successfully.

If someone can point me to the responsible API, I can try to maybe get more information.

Steps to reproduce

Go to an epic in a subgroup. Use /move quick action to move epic to another group. See if the epic moves.

Configuration

So specific configuration.

Versions

Please add an x whether options apply, and add the version information.

  • Self-managed
  • GitLab.com SaaS
  • Dedicated

Versions

  • GitLab (Web: /help or self-managed system information sudo gitlab-rake gitlab:env:info): GitLab Enterprise Edition 18.1.0-pre cf2f054ee74

Helpful resources

Relevant issue: Move an epic to a different group (#13634) · Issues · GitLab.org / GitLab · GitLab

I couldn’t find anything else in forum, issues, or documentation.

It seems to be a special case. Another relevant issue Move old epic fails when there are state change events related to the legacy epic data (#550208) · Issues · GitLab.org / GitLab · GitLab