Updating references to Jira issues on GitLab should update the previously created backlink

Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.

Proposal

When a Commit, Merge request or Comment in GitLab generates a backlink reference in Jira on Atlassian Cloud, any modifications to it should also be reflected back to Jira.

Use case

  1. User references the incorrect Jira issue Example-1 when submitting a commit/MR in GitLab
  2. A backlink reference is created on the incorrect Jira issue Example-1, as expected
  3. User then corrects the incorrect reference in GitLab to refer Example-2, instead
  4. A new reference is created on Jira issue Example-2, the correct Jira issue, but the previous reference in Example-1 is not removed.

What is the current behavior

When a reference to a Jira issue is made on an MR title or commit, a backlink is correctly created in Jira. Updating the reference to a different Jira issue also creates a backlink on the newly referenced Issue, but does not remove the reference created before.

What is the desired behavior

GitLab should remove old backlinks when an existing reference is updated on an MR, commit or comment.

Edited by 🤖 GitLab Bot 🤖