Skip to content

Hyperlinks to closed Issues are missing in MRs' descriptions after import

Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.

Summary

After importing a project, hyperlinks to closed issues in the MRs description are missing.

Steps to reproduce

  1. Create a project with MRs and Issus.
  2. Mention different issues in the MR description.
  3. Export the project.
  4. Import the project.
  5. Some MRs will have the description mentioning the issue, but the hyperlinks to the issue are missing.

Example Project

Exported project: https://gitlab.com/rhassanein/hyperlinksinmrs

Imported project: https://gitlab.com/rhassanein/importinghyperlinksinmrs

What is the current bug behavior?

Hyperlinks to closed issues in the description of an MR and Issues are missing.

What is the expected correct behavior?

Hyperlinks to closed issues in the description of an MR and Issues are retained through the export/import process.

Relevant logs and/or screenshots

Original MR: beforeImport

MR After Import: afterimport

Output of checks

This bug happens in gitlab.com

Possible fixes

A workaround can be running the following in gitlab-rails c

MergeRequest.find_each do |m|
  m.refresh_markdown_cache!
end
Edited by 🤖 GitLab Bot 🤖