Just no...
Why would you decouple the change from its context? Just add all the relevant information to the commit message itself, so it's preserved.
I follow my friend's approach which works really well.
https://yrashk.medium.com/solving-problems-one-commit-at-a-t...
Too many a times I had to do code archeology to encounter archived Jira or some old space I don't have permissions for, that was originally migrated from GitHub issues and all the ticket numbers are in complete mismatch.