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
Joseph 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?

Joseph 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
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Julia Dillon
Posted Apr 17, 2018 in Jira

Tell us how your team runs on Jira!

Hey Atlassian Community! Today we are launching a bunch of customer stories about the amazing work teams, like Dropbox and Twilio, are doing with Jira. You can check out the stories here. The thi...

795 views 2 19
Join discussion

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