Pre-commit svn hook in JIRA cloud

Sabyasachi Dalal November 8, 2014

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

0 votes
Norman Abramovitz
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
November 9, 2014

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. 

0 votes
Robert Massaioli _Atlassian_
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
November 8, 2014

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

0 votes
Norman Abramovitz
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
November 8, 2014

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

Suggest an answer

Log in or Sign up to answer