I want to copy versions between several projects (they all have the same versions). So I am trying to use the JCLI to do this. Howver I get the following errors and am now stuck. Can anyone help? The user login provided is for the sysadmin account. The following is from the cmd window:
C:\Program Files\jira-cli-2.6.0>jira --action copyVersions --project "ABC" --toProject "ABC Test Project" --verboseServer address: http://ia-jirasvr:8080/rpc/soap/jirasoapservice-v2Successful login to: http://ia-jirasvr:8080/rpc/soap/jirasoapservice-v2 by user: nick watsonURL requested: http://ia-jirasvr:8080/rest/api/latest/version/10000?os_username=nick watson&os_password=***Request type: GETContent type: application/jsonResponse code: 505, message: HTTP Version Not Supported, url: http://ia-jirasvr: 8080/rest/api/latest/version/10000?os_username=nick watson&os_password=***Problem determination - response: 505: HTTP Version Not SupportedProblem determination - response url: http://ia-jirasvr:8080/rest/api/latest/version/10000?os_username=nick watson&os_password=***Problem determination - request url: http://ia-jirasvr:8080/rest/api/latest/version/10000?os_username=nick watson&os_password=***org.swift.common.cli.AbstractRemoteClient$RemoteRestException: Unknown error occurred on server. Use the problem determination urls from a browser to see more details.Remote error: 1 versions failed to be copied.0 versions copied from ABC to project ATP.java.rmi.RemoteException: 1 versions failed to be copied.0 versions copied from ABC to project ATP. at org.swift.jira.cli.JiraClient.copyVersions(JiraClient.java:3997) at org.swift.jira.cli.JiraClient.handleRequest(JiraClient.java:483) at org.swift.common.cli.AbstractRemoteClient.process(AbstractRemoteClient.java:119) at org.swift.common.cli.CliClient.doWork(CliClient.java:298) at org.swift.jira.cli.JiraClient.main(JiraClient.java:158)FbpEc3X060 logged out.Error: Parameter 'server' is required.Error: Parameter 'password' is required.
Hi Bob,
Guess I am being particulariliy dense here... is the JIRA User ID the same as the Username? If so it has a space.
Regardless I created a new user called automation (put in administartor group) and used that. I still get the same error e.g.
C:\Program Files\jira-cli-2.6.0>jira --action getServerInfoJIRA version: 5.0.5, build: 732, time: 2012-06-28T12:29:35.818+0100, time zone:Europe/LondonError: Parameter 'server' is required.Error: Parameter 'password' is required.
Nick
My apologies, apparently a user id (username) can be created with a blank or other special characters . Supporting these will require a fix in the CLI. In the meantime use an id without blanks for special characters.
Regarding your error, you need to check your customization of the jira.bat command to ensure it is correct. If you don't see an obvious error, post it.
I really cant see whats wrong, I literally just edited the servername, usrname and password anyway here goes:
Incase its relevant its on a Win7 Box, 64 bit machine
Thanks.
@echo offrem remember the directory path to this bat fileset dirPath=%~dp0rem need to reverse windows names to posix names by changing \ to /set dirPath=%dirPath:\=/%rem remove blank at end of stringset dirPath=%dirPath:~0,-1%rem - Customize for your installation, for instance yo might want to add default parameters like the following:rem java -jar "%dirPath%"/lib/jira-cli-2.6.0.jar --server http://my-server --user automation --password automation %*java -jar "%dirPath%"/lib/jira-cli-2.6.0.jar --server http://ia-jirasvr:8080 --user automation --password aut0mat1on %*java -jar "%dirPath%"/lib/jira-cli-2.6.0.jar %*rem Exit with the correct error level.echo ">>"echo ">>jira.bat run completed"EXIT /B %ERRORLEVEL%
It looks like you're new here. Sign in or register to get started.