Pre-commit svn hook in JIRA cloud

Is it possible to put a pre-commit svn hook with JIRA on cloud, which will check for a valid JIRA open issue before allowing to commit ?

If such a feature is not available, is anyone doing it any other way ?

thanks and regards

sabya

3 answers

We have been using client side svn pre-commit hook through tortiosesvn.for this purpose.   You just need to

    1) create/use a JIRA user(s) that can access your JIRA instance through the REST API
        The user/password should have limited access 
    2) Create your pre-commit hook
        1) use svnlook to get the description
        2) use your scripting language's regex to get JIRA issue identifiers
        3) use the REST API to lookup the JIRA issue identifiers.  We used curl
        4) Return messages and exit statuses for each error or just the exit status for siuccess

0 vote

OnDemand used to have this feature. I'll try to look up how Atlassian did it.

If you have your own svn server, you can then use a server side pre-commit hook instead.   I pretty sure Atlassian dropped subversion repository support except through fisheye  for JIRA Cloud.   It was part of the move to BitBucket.  Maybe a new Atlassian connect plugin might exist now. 

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...

148 views 1 10
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