Migrating Merge Requests Between Projects

Problem to solve

We recently migrated our self-hosted Gitlab instance from CentOS 7 to Ubuntu 22.04. Overall, the migration went smoothly and we’re fully operational. We did have one project however that seemed to have issues around its repository settings / secrets. We suspect the issue is due to either when we captured the secrets file or just file corruption. Either way, we determined the easiest solution was to migrate the repository to a new project, which worked out organizationally better anyway.

We have migrated the project, and have commit history, issues, etc. all set. The one request we have from the user that we can’t seem to get is migrating the merge request history.

As an admin, I only see an option to export Merge Requests as a CSV file, but no location for importing said CSV file.

I have researched some other posts on the forum regarding this issue, but many of them are several years old, so I’m hesitant to take them as still being accurate.

Steps to reproduce

  1. Navigate to Original Project > Merge Requests
  2. Use … menu and select “Export as CSV”.
  3. Wait to receive CSV.

Configuration

We’re running Gitlab Community Edition, 17.3.3 release. These are the settings for Merge Requests on the original project:

Versions

Please select whether options apply, and add the version information.