Is it possible to integrate Jira with WebSVN?

Tom Isaacson November 20, 2011

I can get Jira to see my Subversion repository but we're using WebSVN and all I can find about integrating this suggests it's not possible:

http://forums.atlassian.com/message.jspa?messageID=257277169

However, this is from 2008 - has there been any change since then?

Thanks.

3 answers

1 accepted

1 vote
Answer accepted
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 20, 2011

It should be possible by modfiying the command strings where the repository is defined. You will need to look at the command line arguments for websvn and look at the Jira documentation about the substitution variables.

Something like this could work for you with modifications to mycompany and websvn version information.

#———————————
# WebClient for SVN (2.0)
#———————————
linkformat.changeset=http://svn.mycompany.net/websvn-2.2.1/revision.php?repname=source&location=/&rev=${rev}
linkformat.file.added=http://svn.mycompany.net/websvn-2.2.1/filedetails.php?repname=source&path=${path}&rev=${rev}
linkformat.file.modified=http://svn.mycompany.net/websvn-2.2.1/diff.php?repname=source&path=${path}&rev=${rev}&sc=0
linkformat.file.replaced=http://svn.mycompany.net/websvn-2.2.1/filedetails.php?repname=source&path=${path}&rev=${rev-1}&sc=0
linkformat.file.deleted=http://svn.mycompany.net/websvn-2.2.1/filedetails.php?repname=source&path=${path}&rev=${rev-1}&sc=0
linkformat.copyfrom=http://svn.mycompany.net/websvn-2.2.1/filedetails.php?repname=source&path=${path}&rev=${rev-1}&sc=0

Tom Isaacson November 20, 2011

Thanks, this works once modified (I also had to change the repository name from "source"). I had to add another link for View:

http://svn.mycompany.net/websvn-2.2.1/filedetails.php?repname=source&path=${path}

1 vote
Oleg Burmistrov October 18, 2012

If anyone by any chance come here here are the paths we've used with current versions of WebSVN:

Changeset Format: https:// <svnpath>/<websvncontext>/listing.php?repname=<you_svn_rep_name>&peg=${rev}
File Added Format: https:// <svnpath>/<websvncontext>/listing.php?repname=<you_svn_rep_name>&path=${path}&peg=${rev}&sc=0
File Modified Format: https:// <svnpath>/<websvncontext>/listing.php?repname=<you_svn_rep_name>&path=${path}&peg=${rev}&sc=0
File Replaced Format: https:// <svnpath>/<websvncontext>/listing.php?repname=<you_svn_rep_name>&path=${path}&peg=${rev-1}&sc=0
File Deleted Format: https:// <svnpath>/<websvncontext>/listing.php?repname=<you_svn_rep_name>&path=${path}&peg=${rev-1}&sc=0

0 votes
JamieA
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 21, 2011

It is possible as above, however you should take the patch that allows you to use the repo name as a parameter to avoid hard-coding it as in Norman's example, think it's this one: https://studio.plugins.atlassian.com/browse/SVN-35

Not a big deal if you have one or two repos but if you have thousands like some svn users it's a must-have.

Suggest an answer

Log in or Sign up to answer