|Issue ID pattern||
The regular expression that defines the format in which issues are referenced in commit messages.
This regular expressions matches all character strings that consist of two substrings separated by an n-dash character:
|Issue link pattern||
A combination of the URL address of your issue tracking system and a regular expression that identifies issues in it.
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:
|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:
- Open the Project Settings, and click Issue Navigation under the Version Control node.
In the Issue Navigation dialog box that opens, configure a list of issue navigation patterns by setting correspondence
between issue patterns in commit messages and URL addresses of referenced issues.
If you are using JIRA
or our bug tracking system YouTrack,
click the Add JIRA pattern or Add YouTrack Pattern respectively,
and type the URL to the installation of bug tracking system in question.
IntelliJ IDEA adds the regular expression that defines such pattern automatically.
For other issue tracking systems, click the Add button to create a new entry
or select an existing entry and click the Edit button.
In the Add Issue Navigation Link dialog box that opens, specify the following:
- The regular expression that defines the issue pattern in a commit message.
- The replacement expression that defines the URL to access the corresponding referenced issue.
- To remove an issue navigation pattern, select it in the list and click Remove .
- If you are using JIRA or our bug tracking system YouTrack, click the Add JIRA pattern or Add YouTrack Pattern respectively, and type the URL to the installation of bug tracking system in question.
Open one of the following views:
- Local, Incoming, or Log tab of the Changes tool window.
- History tab of the Version Control tool window.
- Changes Browser.
- Find the commit of interest and click the hyperlink to the related issue.