Issues/repo migration : link issues to related commits after issues/repo import

We have imported a series of issues in a gitlab project (from JIRA) then we have imported the git repository into that project. The commit messages relates existing gitlab issues (like #123).
Now it seems as we proceeded by import, gitlab doesn’t look for past commit messages to add references to the issues like "‘Issue referenced in commit <<commit id>>’
Is there a workaround for this ?

NB: the linking works well for a new commit…

Is anyone have a hint ? Is gitlab able to parse existing git commit messages and add related relation in issues ?