Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Integration of JIRA with TortoiseSVN

Could anyone specify the ways to integrate JIRA with TortoiseSVN to track the issue details? What URL should be specified in URL section, what are the other parameters needed? Is there anything you have to do on JIRA side to ensure the integration?

like image 268
shaggy Avatar asked Dec 27 '11 06:12

shaggy


2 Answers

I had lots of problems when reading TortoiseSVN documentation on the subject. Here are my findings about the integration. To integrate Jira and TortoiseSvn, a set of instructions should be performed. This guide suppose that your jira server is available through this url: http://192.168.10.10:8090. In addition, suppose that your project name in Jira is SVNTEST.

  1. Install svn plugin for jira on your jira server. use this link for more info.
  2. Install the Jira plug-in for TortoiseSvn in your clients. It can be downloaded from this link or this one.
  3. For all the folders in your repository, set the flowing properties:

enter image description here

Add Jira setting to your TortoiseSvn. To do this follow the steps below:

  • Right click on your code folder and from the TortoiseSvn menu, select settings item.
  • Under hook scripts click on issue tracking integration.
  • Click the Add button.
  • Under the working copy path, enter the path of your source code.
  • Under the provided select the only available item namely CSharpTest.Net.SvnPlugIn.MyPulgIn
  • Under the parameters, enter the url of your Jira server, i.e. http://192.168.10.10:8090.
  • After confirming the dialog, enter the username and password of your Jira server.
  • To test whether the installation is complete, try to commit a set of changes. In the commit dialog, you should see a button namely Jira Issues. By selecting it, you should see your Jira issues within a new dialog.
like image 86
Gupta Avatar answered Oct 06 '22 16:10

Gupta


Following the advice of @Avi, here are the details for integration with JIRA:

  1. Set the following properties on the directory for which you want the integration to JIRA:

    • bugtraq:url: Example could be http://my.server.url/jira/browse/<PREFIX-FOR-JIRA>-%BUGID%. Please fill in the right information for my.server.url and <PREFIX-FOR-JIRA>. If you want to map for all projects in JIRA, the string could be .../browse/%BUGID%.
    • bugtrac:logregex: Regular expression for you JIRA Id. Depends on what you want to match, for all project use /w+\-(\d+)

    There are other alternatives for defining the properties, but these should do it.

  2. Commit your changes to the svn properties, so that the properties will be included for all people doing a checkout of the same directory.
  3. When doing now a commit on some of the files in the directory or subdirectories, include there the issue tag in the log message of Subversion.
  4. TortoiseSVN will now show a hyperlink in the log message, when you open the log of the files or directories.

If you would like to integrate JIRA as well with Subversion, there is a documentation how to integrate Subversion into JIRA. You have to install then the Subversion JIRA plugin in JIRA.

like image 36
mliebelt Avatar answered Oct 06 '22 16:10

mliebelt