How to connect Jira and Gerrit

user2994965 picture user2994965 · Jan 24, 2014 · Viewed 19.5k times · Source

I am using Gerrit and Jira. I want to connect with gerrit to Jira. When I review the code and comment something it will automatically update the jira comment as well. How to do this?

Answer

Puvanarajan picture Puvanarajan · Jan 30, 2014

In your gerrit.config file try this:

[commentlink "jira"]
match = ([A-Z]+-[0-9]+)
link = http://your.jirs_side.net/browse/$1

Here's more information regarding the commentlink section.