We want to enforce having the Jira issue key as the first token/word in comment when checking in to SVN. We are using the commit acceptance plugin to ensure that there is a valid Jira ticket and that the ticket is unresolved before anything can be committed.
In addition, we would like to ensure no other tickets appear in the comments, if that is possible.
As the commit must be done directly in the repository first, to only then show up in JIRA, this cannot be enforced by the plugin.
Unfortunately this is a user education task rather than a plugin task. Users must have that in mind before committing, because there's no turning back after source code changes have been committed.
Also, the plugin will show all JIRA tickets that are mentioned in the comments, so if you want to show only one ticket please make sure that only one ticket is mentioned in the commit message.
The Commit Policy add-on (a "commit acceptance on steroids") can easily do this with following settings:
The documentation of the various conditions is available here: http://www.midori-global.com/products/jira-commit-policy-plugin/documentation/#conditions
Connect with like-minded Atlassian users at free events near you!Find a group
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no AUG chapters near you at the moment.Start an AUG
We're bringing product updates and pro tips on teamwork to ten cities around the world.Save your spot