Skip to content

Jump to Issue Tracker

Alistair McKinnell edited this page Oct 29, 2017 · 23 revisions

Rationale

Tweak your configuration so that you can jump from a commit message to your issue tracker. I will show the configuration for jumping to Jira.

All our teams follow a convention of prefixing each commit message with a reference to the Jira issue. Because of this convention, we can configure RubyMine to jump directly to the issue.

Mechanism

Preferences > Version Control > Issue Navigation and Add (using the '+' button)

In the Add Issue Navigation Link dialog specify the Issue ID regular expression and the replacement text. You can test out your regular expression by entering a sample Issue ID.

The settings that do the trick where I work are:

Setting Value
Issue ID [A-Z]+-\d
Issue link https://jira-host/browse/$0

If you are successful you should see links when you show the commit history for a file.

Jump from Git History

More settings that do the trick where I work are:

Setting Value
Issue ID ^#?([0-9a-zA-Z]*)\b -.+
Issue link https://trello.com/c/$1/

Clone this wiki locally