Auto fix other project's issue in gitlab

I have two projects A and B. A uses B

Then, when I work on project A, I find a issue in project B. then I make a issue in B, and I want to link to the issue that has made in B in my project A. How can I do this ?

PS. In the same project ,I can use # plus the code of the issue to link a issue.

Thanks in advance.