问题
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?
回答1:
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.
- Install svn plugin for jira on your jira server. use this link for more info.
- Install the Jira plug-in for TortoiseSvn in your clients. It can be downloaded from this link or this one.
- For all the folders in your repository, set the flowing properties:
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.
回答2:
Following the advice of @Avi, here are the details for integration with JIRA:
Set the following properties on the directory for which you want the integration to JIRA:
bugtraq:url
: Example could behttp://my.server.url/jira/browse/<PREFIX-FOR-JIRA>-%BUGID%
. Please fill in the right information formy.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.
- Commit your changes to the svn properties, so that the properties will be included for all people doing a checkout of the same directory.
- 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.
- 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.
回答3:
Just to add to @mliebelt's answer.
svn propset "bugtraq:logregex" "([A-Z]+\-\d+)" .
svn propset "bugtraq:number" "false" .
svn propset "bugtraq:url" "http://jira.company.com/browse/%%BUGID%%" .
svn propset "jira:url" "http://jira.company.com" .
回答4:
TortoiseSVN has excellent documentation. Since the question isn't about integration with a specific issue tracker, I don't think I can do any better than the page on Integration with Issue Trackers.
回答5:
In JIRA 7.1 support of SOAP web-service has been ended and RPC plugin was deprecated and REST is used instead of SOAP so you can't use the the plugin written by csharptest.net.
A generous developer write a new plugin for TortoiseSVN which support REST. You can find it here.
来源:https://stackoverflow.com/questions/8641950/integration-of-jira-with-tortoisesvn