Referencing issues not working when both issues are imported through the API v4
Summary
When I create two issues in a project manually (A and B). And I add hashtag A into the message of issue B it get's referenced. When I open issue A now I see a reference to B. If I import 2 issues again (C and D) through the API v4. After the import I open issue D and in the message I add hashtag C. Now when I look at issue C it is not referenced.
Steps to reproduce
Import 2 issues through the API v4. After the import try to reference these issues manually and check if you see the blabla mentioned issue blabla.
What is the current bug behavior?
The issue that needs to have the text ".... metioned ...." is missing
What is the expected correct behavior?
The issue that needs to have the text ".... metioned ...." should have the text
Output of checks
This bug happens on GitLab.com