Welcome to Jira2SVN, this guide quickly runs through a typical installation. For more detailed instructions, please refer to the other documentation included with this product. For a Linux installation, simply replace all references to c:\Program Files with /opt (or /usr/local if you prefer) and use a terminal window where it refers to 'DOS' below.

Prerequisites

Before you start make sure you have the following setup and available:

jira2svn_overview.jpg

Request a License

Unpack the zip file on the machine that you are planning to use as the Jira2SVN Server and run the Clearvision\tools\get_license_info program in a DOS command window. Send the information requested to sales@clearvision-cm.com to apply for a license.

Linux prerequisites

The client executable uses GTK+ on linux, so you might need to install this, for example on CentOS 5 or RHEL 5:

yum install gtk+

(If you see an error with libgmodule.so missing while trying to run the client, then gtk+ is not installed on your system)

Setup Jira

Enable XML-RPC

Enable the XML-RPC remote JIRA API as per the instructions , in summary:

Create a Filter

Create a filter to get the list of Issues that a typical Jira2SVN user would be interested in. For example, all outstanding bugs or features for the 'Current User'. Make sure that this filter is usable by everyone who will use Jira2SVN (for example by 'sharing' the filter to everyone). Write down the id of the filter: a number like '10001'. You can find it at the end of the URL after creating a new filter, or when you view a filter (look in your browser's location bar and scroll right as far as you can go).

Add a custom field

Note the numerical part of it's id, something like 10010 (you'll see the id within the URL in your browser when you've created the field, eg fieldId=customfield_10010 or at the end of the URL when you edit the field).

install the Jira2SVN Plugin

Install & Configure Jira2SVN Server

On your Jira2SVN Server machine:

[JIRA]
filter_id=10010
jira2svn_custom_field_id=10000
jira_server=issues.mycompany.com:8080

[License]
company_name=Your Company Plc
licence_email=admin@yourcompany.com
expiry_date=2008-12-31
users=999
license_key=PLEASE_ADD_YOUR_LICENCE_key_HERE
license_certificate=PLEASE_ADD_YOUR_LICENCE_certificate_HERE

[Server]
server_ip=192.168.1.2
server_port=54322

cd c:\Program Files\Clearvision\jira2svn\server
jira2svn_server.exe

Install & Configure Jira2SVN Clients

On each of the machines that Jira2SVN users will be working:

[JIRA]
jira_uid=joe_bloggs
jira_password=my_secret_password

[Server]
server_ip=192.168.1.2
server_port=54322

[Options]
svn_uid=joe_bloggs

cd c:\Program Files\Clearvision\jira2svn\client
jira2svn_client.exe

Install & Configure Subversion Hooks

On your Subversion Server machine:

[Server]
server_ip=192.168.1.2
server_port=54322

Test it!

Now that you have:

you are ready to test the system by committing a change to Subversion. On the machine that is running the Jira2SVN Client:

svn commit myfile.txt --username joe_bloggs

You should see the Jira2SVN client GUI popup to allow you to select the list of issues that were resolved by this change. Select one and select OK to close the popup window.

Verify Results

To check that Jira2SVN worked fully, open up the issue you selected and see the change note in the 'Comments' tab of your issue. Then, check the link back to JIRA in Subversion by looking at the 'clearvision:change_id' revprop with this command:

svn proplist -rHEAD --verbose --revprop .


Copyright (c) 2008 Clearvision CM All Rights Reserved
Registered in England No. 5643578 VAT Registration No. UK881364801
Registered Address Laurel Farm, Winters Hill, Durley Southampton, SO32 2AH

http://www.clearvision-cm.com