In Github, since there are no custom fields, I would recommend whenever the github side receives the first synchronization back from Jira, to add a comment with the key of the corresponding Jira issue.
To accomplish this, you should add this in the incoming sync of the Github side and remove any other line that is setting the comments: