Enabling external issue tracker breaks referencing internal issues from other projects
Summary
Enabling external issue tracker breaks referencing internal issues from other projects when the reference is typed in, but not when the link is pasted.
Steps to reproduce
- Create
project-a
in your personal namespace - Create issue 1 in
project-a
- Create
project-b
in your personal namespace - Enable JIRA service in
project-b
- Create a merge request 2 in
project-b
- Post
project-a#1
as a comment - The text is not transformed to a link
- Paste
https://gitlab.com/your-user-name/project-a/issues/1
as a comment - The text is transformed to a link
Example Project
https://gitlab.com/adamniedzielski/test-project-3/merge_requests/1
Edited by username-removed-378947