Subversion and Git integration with Jira tickets
Many projects use Jira for managing tracking bugs, milestones, feature requests and so on, and many of these projects keep track of which commit affects which ticket. To make things even easier, we have a service called
svngit2jira, which integrates
Subversion and Git commits with Jira tickets.
How it works¶
Simply mention a Jira ticket in a commit, and the specific ticket receives an update indicating that the commit has been made in reference it. For example, scroll down in this CloudStack ticket to see the commit mentioned.
This service also plugs into the ReviewBoard instance if you use Jira ticket names there, as the CloudStack project does.
The most common scenario is to mention a Jira ticket in your commit, and the service updates the ticket to reflect your new commit. Some projects have a trigger set so that it only updates a ticket if the first sentence is the Jira ticket number, but we can tailor this to suit your project's needs.
Setting up svngit2jira¶
To enable the service for your project, create an Infra Jira ticket. Include this information:
- The name of the project.
- Has the PMC agreed to use this? (Make sure of this before requesting the feature, as it does tend to add quite a lot of new information to a Jira ticket.)
- What Jira name does your project use?
- Does the project use Git or Subversion?
- How would you like commits to trigger an update of a JIRA ticket. This can be anything from the standard catch-all FOO-1234 trigger to more specific rules you thought of yourself.
- If you are using Git, are there any specific branches you'd like the service to ignore?
The source for this feature is freely available.