# Git integration with issue trackers

With IntelliJ IDEA, you can connect your commit messages with a bug tracker or an issues database, and navigate from commits in your VCS log to issues related to these commits.

Procedure: Enable navigation from commit messages to issues

1. Press `Ctrl+Alt+S` (Windows), `⌘ Comma` (macOS), `⌘ Comma` (IntelliJ IDEA Classic (macOS)), `⌘ Comma` (macOS System Shortcuts), `Ctrl+Alt+S` (XWin), `Ctrl+Alt+S` (GNOME), `Ctrl+Alt+S` (KDE), `Ctrl+Alt+S` (Emacs), `Ctrl+Alt+S` (Sublime Text), `⌘ Comma` (Sublime Text (macOS)), `Ctrl+Alt+S` (NetBeans), `Ctrl+Alt+S` (Visual Studio), `⌘ Comma` (Visual Studio (macOS)), `Ctrl+Alt+S` (Eclipse), `⌘ Comma` (Eclipse (macOS)) to open settings and then select `Version Control | Issue Navigation`.

2. Use this dialog to create a list of the issue navigation patterns.

![Issue navigation settings](https://resources.jetbrains.com/help/img/idea/2026.2/ij_issue_navigation_settings.png)

An issue navigation pattern maps an issue ID pattern in commit messages with the URL addresses of the referenced issues. This enables you to navigate from committed changes to issues related to these changes. As soon as IntelliJ IDEA encounters a match to the issue ID pattern in a commit message, the match is displayed as a link in the   Version Control tool window  `Alt+9` (Windows), `⌘ 9` (macOS), `⌘ 9` (IntelliJ IDEA Classic (macOS)), `⌘ 9` (macOS System Shortcuts), `Alt+9` (XWin), `Alt+9` (GNOME), `Alt+9` (KDE), `Alt+9` (Emacs), `Alt+9` (Sublime Text), `⌘ 9` (Sublime Text (macOS)), `Alt+9` (NetBeans), `Alt+9` (Visual Studio), `⌘ 9` (Visual Studio (macOS)), `Alt+9` (Eclipse), `⌘ 9` (Eclipse (macOS)) . If you mention several issues, all of them will be displayed as links. Clicking such link opens the matching issue in the default browser.

In the Issue Navigation settings, Issue is a read-only field that shows the issue pattern. Link is a read-only field that shows the link to navigate from the issue pattern in the current row to the issue in the bug tracking system.

Click ![](https://resources.jetbrains.com/help/img/idea/2026.2/app.expui.general.add.svg) Add to configure a list of issue navigation patterns by mapping issue patterns in commit messages with URL addresses of the referenced issues.

* If you are using [JIRA](http://www.atlassian.com/software/jira/overview) or [YouTrack](http://www.jetbrains.com/youtrack/), click Add JIRA Pattern or Add YouTrack Pattern on the toolbar, and type the URL to the installation of the bug tracking system. IntelliJ IDEA will automatically add a regular expression that defines the navigation pattern.

* For other issue tracking systems, click Add Issue Navigation Link to create a new entry or click ![](https://resources.jetbrains.com/help/img/idea/2026.2/app-client.expui.general.edit.svg) Edit to edit an existing entry. In the dialog that opens, specify the following regular expressions: * the [pattern for issue IDs](#example_issue_id_pattern) in commit messages * the [replacement expression](#example_issue_link_pattern) that defines the URL to access the corresponding referenced issue

## Example

The example below shows how IntelliJ IDEA applies the mentioned rules to detect a reference to an issue in a commit message and compose a link to it in the issue tracking system.

![Add Issue Navigation Link dialog](https://resources.jetbrains.com/help/img/idea/2026.2/ij_add_issue_navigation_link.png)

|     Issue ID     | A [regular                     expression](regular-expressions.html) that defines the format for issue references in commit messages.    	   ``` [A-Z]+\-\d+ ```      This regular expression matches all character strings that consist of two substrings separated by an n-dash character:        1. Substring 1: An unlimited number of upper-case alphabetic characters.    2. Substring 2: An unlimited number of digital characters.     > **Tip:** > For more information about using special characters in regular expressions, refer to [Regular Expressions Syntax Reference](regular-expressions.html).    |
|    Issue link    |  A combination of the URL address of your issue tracking system and a regular expression that identifies issues in it.    	   ``` http://<mytracker>/issue/$0 ```      Here `$0` indicates a back reference to the entire match. This means that as soon as IntelliJ IDEA detects a match in a commit message, it is added to the URL address of the tracker as is.     |
|  Matching issue ID  |  IntelliJ IDEA detects the following reference to an issue in the commit message of interest:       ``` MYPROJECT-110 ```    |
|  Composed issue link  |     In accordance with the above issue navigation pattern, the detected matching reference is added to the URL of the tracker as is, so the link to the referenced issue is composed as follows:       ``` http://mytracker/issue/MYPROJECT-110 ```    |

