JetBrains Space
 

Link an Issue to a Commit or Code Review

Last modified: 31 January 2023

Linking issues to relevant commits, code reviews, or merge requests lets you access all the data related to an issue in a single click. You can view commit messages in issues and access issues from code reviews, which helps you track the work progress without switching tabs.

When you create a link between an issue and a commit or code review, these entities become bound and synced:

  • The issues linked to a code review are accessible from the respective code review page, and those that are linked to a commit are accessible from the commit list, and vice versa.

  • The code review status displayed on the issue page will be updated automatically when it's changed.

  • When a linked commit is the last one in the branch, you can create a merge request right from the issue.

  • The status of an issue linked to a merge request can be updated automatically when the merge is successfully completed and the merge request is closed. (Available in Organization and Enterprise plans.) Also, you'll get a notification to the issue chat.

You can link issues to commits and code reviews in two ways:

  • By specifying a commit or code review on the issue page.

  • By mentioning an issue ID in the commit message or code review title.

When an issue is linked to a commit, you can see the issue details right from the commit list. Select the commit then hover over the issue ID to immediately see the issue title, status, assignee and due date, or click on it to see more details on the pop-up screen:

issueLinkedCommit.png

And on the issue page, you can see the linked commit under the Code changes tab:

issuePageLinkedCommit.png