VCS integration with issue trackers
With CLion, you can connect your commit messages with a bug tracker or an issues data base, and navigate from commits in your VCS log to issues related to these commits.
Enable navigation from commit messages to issues
Press Ctrl+Alt+S to open IDE settings and select Version Control | Issue Navigation.
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 or YouTrack, click Add JIRA pattern or Add YouTrack Pattern on the toolbar, and type the URL to the installation of the bug tracking system.
CLion will automatically add a regular expression that defines the navigation pattern.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 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.
Example
Issue ID pattern | The regular expression that defines the format in which issues are referenced in commit messages. [A-Z]+\-\d+ 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. http://mytracker/issue/$0 Here |
Matching issue ID | CLion 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 |