How to ensure all subversion commits have valid jira ticket number?

I have Jira+Fisheye finally setup. All works, Fisheye correctly indexes my repository, all is well.

I understand that I can put BUG-1 into comment on check in and get this changeset auto-magically assigned to proper ticket in JIRA but it is not enforced.

I understand there is plugins for Tortoise SVN to choose bug and do #close command, etc.

What I want is server-side hook to JIRA. So commit rejected if it's done into specific repository without proper ticket number or without comment. How do I achieve this? Is there such scripts available? Is it provided by Atlassian?

2 answers

1 accepted

1 vote
Joe Clark Atlassian Team May 21, 2012

Have a look at the JIRA Commit Acceptance plugin, which is supported by Atlassian and available for download from plugins.atlassian.com.

Thanks! That should be exactly what I need.

Looks a little long in the tooth - is there still any activity on this plugin? Will it move to version 2 type? COuld auth tokens be used instead?

SHould we even bother if we plan on heading to 6.0 soon?

Joe Clark Atlassian Team May 05, 2013

As far as I'm aware it's still maintained by the JIRA plugin team and will be made compatible with JIRA 6.0. It's a bit long in the tooth and hasn't had any new feature work done in a long time, but the existing functionality still works fine (as far as I'm aware)

Commit Policy is a relatively new add-on to do this, and other checks on Subversion, Git, Mercurial and Bitbucket commits.

(This is maintained for all JIRA versions after 6.1.)

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published Sunday in Agility

You asked for it, so we delivered: images on issues have arrived

A picture tells a thousand words. And agility boards have just released their latest feature: cover images on issues – so now your board can tell a story at first glance. Upload attachmen...

216 views 2 11
Read article

Atlassian User Groups

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!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you