org.swift.common.cli.AbstractRemoteClient$RemoteResourceNotFoundException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • I'm new to jira-cli, so I may be doing something wrong. But when I execute: {noformat} . ./jira.sh -a getIssue -v --issue "$i" {noformat} I get formatted response with the details of the issue $i But when I add the outputFormat switch like this: {noformat} . ./jira.sh -a getIssue --issue $i --outputFormat 2 -v {noformat} I get output like: {noformat} Server address: http://myjira/jira//rpc/soap/jirasoapservice-v2 Successful login to: http://myjira/jira//rpc/soap/jirasoapservice-v2 by user: me URL requested: http://myjira/jira//rest/api/latest/issue/ABC-368?os_username=me&os_password=*** Request type: GET Content type: application/json Reading Key: JSESSIONID Val: 70CE101817211169A3C204123456789 Response code: 404, message: Not Found, url: http://myjira/jira//rest/api/latest/issue/ABC-368?os_username=me&os_password=*** Problem determination - response: 404: Not Found Problem determination - response url: http://myjira/jira//rest/api/latest/issue/ABC-368?os_username=me&os_password=*** Problem determination - request url: http://myjira/jira//rest/api/latest/issue/ABC-368?os_username=me&os_password=*** Remote error: Resource does not exist. Use -v to see more details. org.swift.common.cli.AbstractRemoteClient$RemoteResourceNotFoundException: Resource does not exist. Use -v to see more details. at org.swift.common.cli.AbstractRestClient.restRequestWithFullUrl(AbstractRestClient.java:530) at org.swift.common.cli.AbstractRestClient.restRequest(AbstractRestClient.java:294) at org.swift.jira.cli.JiraRealRestClient.getIssue(JiraRealRestClient.java:272) at org.swift.jira.cli.JiraClient.getTimeTracking(JiraClient.java:3841) at org.swift.jira.cli.JiraClient.getIssue(JiraClient.java:3806) at org.swift.jira.cli.JiraClient.handleRequest(JiraClient.java:521) at org.swift.common.cli.AbstractRemoteClient.process(AbstractRemoteClient.java:119) at org.swift.common.cli.CliClient.doWork(CliClient.java:289) at org.swift.jira.cli.JiraClient.main(JiraClient.java:145) RrnABdmo35 logged out. {noformat} I've tried moving the outputFormat switch around and tried with and without the -v switch. I've tried different values for outputFormat My goal is to use the output to set values for a script, so the less parsing I have to do the better. I was hoping one of the output formats was in a simple Name=Value format with no single quotes or added spaces around values.
    via by Ryan B,
  • I'm new to jira-cli, so I may be doing something wrong. But when I execute: {noformat} . ./jira.sh -a getIssue -v --issue "$i" {noformat} I get formatted response with the details of the issue $i But when I add the outputFormat switch like this: {noformat} . ./jira.sh -a getIssue --issue $i --outputFormat 2 -v {noformat} I get output like: {noformat} Server address: http://myjira/jira//rpc/soap/jirasoapservice-v2 Successful login to: http://myjira/jira//rpc/soap/jirasoapservice-v2 by user: me URL requested: http://myjira/jira//rest/api/latest/issue/ABC-368?os_username=me&os_password=*** Request type: GET Content type: application/json Reading Key: JSESSIONID Val: 70CE101817211169A3C204123456789 Response code: 404, message: Not Found, url: http://myjira/jira//rest/api/latest/issue/ABC-368?os_username=me&os_password=*** Problem determination - response: 404: Not Found Problem determination - response url: http://myjira/jira//rest/api/latest/issue/ABC-368?os_username=me&os_password=*** Problem determination - request url: http://myjira/jira//rest/api/latest/issue/ABC-368?os_username=me&os_password=*** Remote error: Resource does not exist. Use -v to see more details. org.swift.common.cli.AbstractRemoteClient$RemoteResourceNotFoundException: Resource does not exist. Use -v to see more details. at org.swift.common.cli.AbstractRestClient.restRequestWithFullUrl(AbstractRestClient.java:530) at org.swift.common.cli.AbstractRestClient.restRequest(AbstractRestClient.java:294) at org.swift.jira.cli.JiraRealRestClient.getIssue(JiraRealRestClient.java:272) at org.swift.jira.cli.JiraClient.getTimeTracking(JiraClient.java:3841) at org.swift.jira.cli.JiraClient.getIssue(JiraClient.java:3806) at org.swift.jira.cli.JiraClient.handleRequest(JiraClient.java:521) at org.swift.common.cli.AbstractRemoteClient.process(AbstractRemoteClient.java:119) at org.swift.common.cli.CliClient.doWork(CliClient.java:289) at org.swift.jira.cli.JiraClient.main(JiraClient.java:145) RrnABdmo35 logged out. {noformat} I've tried moving the outputFormat switch around and tried with and without the -v switch. I've tried different values for outputFormat My goal is to use the output to set values for a script, so the less parsing I have to do the better. I was hoping one of the output formats was in a simple Name=Value format with no single quotes or added spaces around values.
    via by Ryan B,
  • We use JIRA command line interface CLI to link issues from scripts. The version of CLI we are using is 2.4.0. It used to work with JIRA version 4.4.4. Recently we upgraded jira to 5.1.6, this action is broken, no longer works. Here are the results and error messages we tried to test the action "linkIssue" using CLI 2.4.0 and 2.6.0 against JIRA version 4.4.4 and 5.1.6: **** CLI 2.4.0 with JIRA 4.4.4, linkIssue works: $ /opt/jira-cli/jira.sh -v --server http://irs-rsjira.oak.sap.corp --user www-rev --password '***' --action linkIssue --issue IN1-245 --toIssue IN1-248 --link 'is Review Package for' Server address: http://irs-rsjira.oak.sap.corp/rpc/soap/jirasoapservice-v2 Successful login to: http://irs-rsjira.oak.sap.corp/rpc/soap/jirasoapservice-v2 by user: www-rev URL requested: http://irs-rsjira.oak.sap.corp/secure/LinkExistingIssue.jspa?os_username=www-rev&os_password=***&id=24476&linkKey=IN1-248&linkDesc=is+Review+Package+for Request type: POST Content type: application/xml Post data: null Reading Key: atlassian.xsrf.token Val: BOC2-AB74-RK7A-CN5C|458a9f888176990be53f60f915a7c192e4b8d81b|lout Reading Key: JSESSIONID Val: CA5DD016ED8A7000E04BE1F2141A2637 Response code: 200, message: OK, url: http://irs-rsjira.oak.sap.corp/login.jsp?permissionViolation=true&os_destination=%2Fbrowse%2FIN1-245 Issue IN1-245 is Review Package for IN1-248 kv2M89DT39 logged out. *** CLI 2.4.0 with JIRA 5.1.6, linkIssue doesn't work. It appears to work but doesn't actually. There isn't an error message, but when you check in Jira you can see that the issues are not linked: $ /opt/jira-cli/jira.sh -v --server http://supjiratest.oak.sap.corp --user www-rev --password '***' --action linkIssue --issue KID-662 --toIssue KID-665 --link 'is Review Package for' Server address: http://supjiratest.oak.sap.corp/rpc/soap/jirasoapservice-v2 Successful login to: http://supjiratest.oak.sap.corp/rpc/soap/jirasoapservice-v2 by user: www-rev URL requested: http://supjiratest.oak.sap.corp/secure/LinkExistingIssue.jspa?os_username=www-rev&os_password=***&id=22473&linkKey=KID-665&linkDesc=is+Review+Package+for Request type: POST Content type: application/xml Post data: null Response code: 302, message: Moved Temporarily, url: http://supjiratest.oak.sap.corp/secure/LinkExistingIssue.jspa?os_username=www-rev&os_password=***&id=22473&linkKey=KID-665&linkDesc=is+Review+Package+for Issue KID-662 is Review Package for KID-665 Iy4B456r7m logged out. *** CLI 2.6.0 with JIRA 4.4.4, linkIssue doesn't work: $ /opt/jira-cli-2.6.0/jira.sh -v --server http://irs-rsjira.oak.sap.corp --user www-rev --password '***' --action linkIssue --issue IN1-245 --toIssue IN1-248 --link 'is Review Package for' Server address: http://irs-rsjira.oak.sap.corp/rpc/soap/jirasoapservice-v2 Successful login to: http://irs-rsjira.oak.sap.corp/rpc/soap/jirasoapservice-v2 by user: www-rev URL requested: http://irs-rsjira.oak.sap.corp/rest/api/latest/issueLink?os_username=www-rev&os_password=*** Request type: POST Content type: application/json Post data: {"fromIssueKey":"IN1-245","linkType":"is Review Package for","toIssueKey":"IN1-248"} Reading Key: JSESSIONID Val: 1E84D42E223B9A933DB2CFBF3E2E99A6 Reading Key: atlassian.xsrf.token Val: BOC2-AB74-RK7A-CN5C|3dac570bfc6cb8f44894868221aafa119bd83ef3|lin Response code: 404, message: Not Found, url: http://irs-rsjira.oak.sap.corp/rest/api/latest/issueLink?os_username=www-rev&os_password=*** Problem determination - response: 404: Not Found Problem determination - response url: http://irs-rsjira.oak.sap.corp/rest/api/latest/issueLink?os_username=www-rev&os_password=*** Problem determination - request url: http://irs-rsjira.oak.sap.corp/rest/api/latest/issueLink?os_username=www-rev&os_password=*** Remote error: Resource does not exist. Use -v to see more details. org.swift.common.cli.AbstractRemoteClient$RemoteResourceNotFoundException: Resource does not exist. Use -v to see more details. at org.swift.common.cli.AbstractRestClient.restRequestWithFullUrl(AbstractRestClient.java:537) at org.swift.common.cli.AbstractRestClient.restRequest(AbstractRestClient.java:301) at org.swift.jira.cli.JiraRealRestClient.linkIssue(JiraRealRestClient.java:319) at org.swift.jira.cli.JiraClient.linkIssue(JiraClient.java:2224) at org.swift.jira.cli.JiraClient.handleRequest(JiraClient.java:584) 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) 1HFq6G3Ok1 logged out. *** CLI 2.6.0 with JIRA 5.1.6, linkIssue doesn't work either, yields the same error as above: $ /opt/jira-cli-2.6.0/jira.sh -v --server http://supjiratest.oak.sap.corp --user www-rev --password '***' --action linkIssue --issue IN1-245 --toIssue IN1-248 --link 'is Review Package for' Server address: http://supjiratest.oak.sap.corp/rpc/soap/jirasoapservice-v2 Successful login to: http://supjiratest.oak.sap.corp/rpc/soap/jirasoapservice-v2 by user: www-rev URL requested: http://supjiratest.oak.sap.corp/rest/api/latest/issueLink?os_username=www-rev&os_password=*** Request type: POST Content type: application/json Post data: {"inwardIssue":{"key":"KID-662"},"outwardIssue":{"key":"KID-665"},"type":{"name":"is Review Package for"}} Reading Key: JSESSIONID Val: 07071A16828EC1F94DA70190EA1AA40D Reading Key: atlassian.xsrf.token Val: BOC2-AB74-RK7A-CN5C|c127a6173745273cf2f2228f7b3449d099f0ebf2|lin Response code: 404, message: Not Found, url: http://supjiratest.oak.sap.corp/rest/api/latest/issueLink?os_username=www-rev&os_password=*** Problem determination - response: 404: Not Found Problem determination - response url: http://supjiratest.oak.sap.corp/rest/api/latest/issueLink?os_username=www-rev&os_password=*** Problem determination - request url: http://supjiratest.oak.sap.corp/rest/api/latest/issueLink?os_username=www-rev&os_password=*** Remote error: Resource does not exist. Use -v to see more details. org.swift.common.cli.AbstractRemoteClient$RemoteResourceNotFoundException: Resource does not exist. Use -v to see more details. at org.swift.common.cli.AbstractRestClient.restRequestWithFullUrl(AbstractRestClient.java:537) at org.swift.common.cli.AbstractRestClient.restRequest(AbstractRestClient.java:301) at org.swift.jira.cli.JiraRealRestClient.linkIssue(JiraRealRestClient.java:319) at org.swift.jira.cli.JiraClient.linkIssue(JiraClient.java:2224) at org.swift.jira.cli.JiraClient.handleRequest(JiraClient.java:584) 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) 2IjnUgHis8 logged out. We also downloaded CLI 3.0 30 day trial version, it doesn't work either with JIRA 4.4.4 or 5.1.6. Thanks Yun
    via by Yun Xie,
  • JIRA Version v5.0.3 I am attempting to automate task creation and have successfully created tasks. However, when I try and link two subtasks together, I get the following: > jira.sh --server https://mydomain.com/bugs --action linkissue --issue "TEST-10" --toIssue "TEST-11" --link "relates" --user username --password ******** --debug User parameters (non-blank): Property path: META-INF/maven/org.swift.jira.cli/jira-cli/pom.properties clientInfo . . . . . . . . . : Client version: 2.6.0, Java: Java HotSpot(TM) 64-Bit Server VM 1.6.0_31, OS: Linux 3.4.3-1.fc17.x86_64 action . . . . . . . . . . . : linkissue debug . . . . . . . . . . . . : true server . . . . . . . . . . . : https://mydomain.com/bugs user . . . . . . . . . . . . : username password . . . . . . . . . . : *** issue . . . . . . . . . . . . : TEST-10 toIssue . . . . . . . . . . . : TEST-11 link . . . . . . . . . . . . : relates Default parameters (non-blank): verbose . . . . . . . . . . . : false quiet . . . . . . . . . . . . : false outputFormat . . . . . . . . : 1 host . . . . . . . . . . . . : localhost continue . . . . . . . . . . : false simulate . . . . . . . . . . : false service . . . . . . . . . . . : /rpc/soap/jirasoapservice-v2 loginFromStandardInput . . . : false requestType . . . . . . . . . : GET count . . . . . . . . . . . . : 2147483647 api . . . . . . . . . . . . . : 0 permissionScheme . . . . . . : Default Permission Scheme autoVersion . . . . . . . . . : false autoComponent . . . . . . . . : false autoGroup . . . . . . . . . . : false autoAdjust . . . . . . . . . : false asVersion . . . . . . . . . . : false asComponent . . . . . . . . . : false asCascadeSelect . . . . . . . : false append . . . . . . . . . . . : false appendText . . . . . . . . . : false copyLinks . . . . . . . . . . : false copyAttachments . . . . . . . : false copyComments . . . . . . . . : false copyWatchers . . . . . . . . : false copySubtasks . . . . . . . . : false copySubtaskEstimates . . . . : false useParentVersions . . . . . . : false cloneIssues . . . . . . . . . : false copyVersions . . . . . . . . : false copyComponents . . . . . . . : false copyRoleActors . . . . . . . : false replace . . . . . . . . . . . : false help . . . . . . . . . . . . : false Server address: https://mydomain.com/bugs/rpc/soap/jirasoapservice-v2 Successful login to: https://mydomain.com/bugs/rpc/soap/jirasoapservice-v2 by user: username URL requested: https://mydomain.com/bugs/rest/api/latest/issueLink?os_username=username&os_password=*** Request type: POST Content type: application/json Post data: {"inwardIssue":{"key":"TEST-10"},"outwardIssue":{"key":"TEST-11"},"type":{"name":"relates"}} cookie string: JSESSIONID=40397BD83415FD04C7950E72F68F0EA6; Path=/bugs; HttpOnly Reading Key: JSESSIONID Val: 40397BD83415FD04C7950E72F68F0EA6 cookie string: atlassian.xsrf.token=BGG4-W8YN-5RLO-7YZT|41bbac3104646b6c458d3e6e690bf221fce8093e|lin; Path=/bugs Reading Key: atlassian.xsrf.token Val: BGG4-W8YN-5RLO-7YZT|41bbac3104646b6c458d3e6e690bf221fce8093e|lin Response code: 404, message: Not Found, url: https://mydomain.com/bugs/rest/api/latest/issueLink?os_username=username&os_password=*** Problem determination - response: 404: Not Found Problem determination - response url: https://mydomain.com/bugs/rest/api/latest/issueLink?os_username=username&os_password=*** Problem determination - request url: https://mydomain.com/bugs/rest/api/latest/issueLink?os_username=username&os_password=*** Remote error: Resource does not exist. Use -v to see more details. org.swift.common.cli.AbstractRemoteClient$RemoteResourceNotFoundException: Resource does not exist. Use -v to see more details. at org.swift.common.cli.AbstractRestClient.restRequestWithFullUrl(AbstractRestClient.java:537) at org.swift.common.cli.AbstractRestClient.restRequest(AbstractRestClient.java:301) at org.swift.jira.cli.JiraRealRestClient.linkIssue(JiraRealRestClient.java:319) at org.swift.jira.cli.JiraClient.linkIssue(JiraClient.java:2224) at org.swift.jira.cli.JiraClient.handleRequest(JiraClient.java:584) 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) V6a354w2lo logged out.
    via by Rakesh Mistry,
  • I try to update the issue type scheme of a project by doing : {code}./jira.sh -u xxx -p xxx -s https://<host>:8443 -a updateProject --project XYZ --issueTypeScheme "My issue type" -v{code} I get the following error : {code} Server address: https://<myaddress>:8443/rpc/soap/jirasoapservice-v2 Successful login to: https://<myaddress>:8443/rpc/soap/jirasoapservice-v2 by user: xxx URL requested: https://<myaddress>:8443/secure/admin/WebSudoAuthenticate.jspa?os_username=xxx&os_password=***&authenticate=Confirm&webSudoPassword=***&webSudoDestination=%2Fsecure%2FAdminSummary.jspa&webSudoIsPost=true Request type: POST Content type: application/xml Post data: null Reading Key: JSESSIONID Val: 6E68DEDB39B03B8E0857664553442E89 Reading Key: atlassian.xsrf.token Val: BYKY-6GVB-QZ5G-Q4L8|67aa365640e0472942397563d69284835e190cae|lin Response code: 200, message: OK, url: https://<myaddress>:8443/secure/admin/WebSudoAuthenticate.jspa?os_username=xxx&os_password=***&authenticate=Confirm&webSudoPassword=***&webSudoDestination=%2Fsecure%2FAdminSummary.jspa&webSudoIsPost=true URL requested: https://<myaddress>:8443/secure/admin/ManageIssueTypeSchemes.jspa?os_username=xxx&os_password=*** Request type: GET Content type: application/xml Response code: 404, message: Not Found, url: https://<myaddress>:8443/secure/admin/ManageIssueTypeSchemes.jspa?os_username=xxx&os_password=*** Problem determination - response: 404: Not Found Problem determination - response url: https://<myaddress>:8443/secure/admin/ManageIssueTypeSchemes.jspa?os_username=xxx&os_password=*** Problem determination - request url: https://<myaddress>:8443/secure/admin/ManageIssueTypeSchemes.jspa?os_username=xxx&os_password=*** Remote error: Resource does not exist. Use -v to see more details. org.swift.common.cli.AbstractRemoteClient$RemoteResourceNotFoundException: Resource does not exist. Use -v to see more details. at org.swift.common.cli.AbstractRestClient.restRequestWithFullUrl(AbstractRestClient.java:530) at org.swift.common.cli.AbstractRestClient.restRequest(AbstractRestClient.java:294) at org.swift.common.cli.AbstractRestClient.restRequest(AbstractRestClient.java:324) at org.swift.jira.cli.JiraClient.getIssueTypeSchemeId(JiraClient.java:3043) at org.swift.jira.cli.JiraClient.updateProject(JiraClient.java:2905) at org.swift.jira.cli.JiraClient.handleRequest(JiraClient.java:442) at org.swift.common.cli.AbstractRemoteClient.process(AbstractRemoteClient.java:119) at org.swift.common.cli.CliClient.doWork(CliClient.java:299) at org.swift.jira.cli.JiraClient.main(JiraClient.java:146) aFi7tdC632 logged out. {code} The credentials are correct because I can get or create a project. However if I try to create a project with the --issueTypeScheme flag it fails as when updating. Finally, I tried to access directly https://<myaddress>:8443/secure/admin/ManageIssueTypeSchemes.jspa and I get a 404.
    via by Barthélémy von Haller,
  • I try to update the issue type scheme of a project by doing : {code}./jira.sh -u xxx -p xxx -s https://<host>:8443 -a updateProject --project XYZ --issueTypeScheme "My issue type" -v{code} I get the following error : {code} Server address: https://<myaddress>:8443/rpc/soap/jirasoapservice-v2 Successful login to: https://<myaddress>:8443/rpc/soap/jirasoapservice-v2 by user: xxx URL requested: https://<myaddress>:8443/secure/admin/WebSudoAuthenticate.jspa?os_username=xxx&os_password=***&authenticate=Confirm&webSudoPassword=***&webSudoDestination=%2Fsecure%2FAdminSummary.jspa&webSudoIsPost=true Request type: POST Content type: application/xml Post data: null Reading Key: JSESSIONID Val: 6E68DEDB39B03B8E0857664553442E89 Reading Key: atlassian.xsrf.token Val: BYKY-6GVB-QZ5G-Q4L8|67aa365640e0472942397563d69284835e190cae|lin Response code: 200, message: OK, url: https://<myaddress>:8443/secure/admin/WebSudoAuthenticate.jspa?os_username=xxx&os_password=***&authenticate=Confirm&webSudoPassword=***&webSudoDestination=%2Fsecure%2FAdminSummary.jspa&webSudoIsPost=true URL requested: https://<myaddress>:8443/secure/admin/ManageIssueTypeSchemes.jspa?os_username=xxx&os_password=*** Request type: GET Content type: application/xml Response code: 404, message: Not Found, url: https://<myaddress>:8443/secure/admin/ManageIssueTypeSchemes.jspa?os_username=xxx&os_password=*** Problem determination - response: 404: Not Found Problem determination - response url: https://<myaddress>:8443/secure/admin/ManageIssueTypeSchemes.jspa?os_username=xxx&os_password=*** Problem determination - request url: https://<myaddress>:8443/secure/admin/ManageIssueTypeSchemes.jspa?os_username=xxx&os_password=*** Remote error: Resource does not exist. Use -v to see more details. org.swift.common.cli.AbstractRemoteClient$RemoteResourceNotFoundException: Resource does not exist. Use -v to see more details. at org.swift.common.cli.AbstractRestClient.restRequestWithFullUrl(AbstractRestClient.java:530) at org.swift.common.cli.AbstractRestClient.restRequest(AbstractRestClient.java:294) at org.swift.common.cli.AbstractRestClient.restRequest(AbstractRestClient.java:324) at org.swift.jira.cli.JiraClient.getIssueTypeSchemeId(JiraClient.java:3043) at org.swift.jira.cli.JiraClient.updateProject(JiraClient.java:2905) at org.swift.jira.cli.JiraClient.handleRequest(JiraClient.java:442) at org.swift.common.cli.AbstractRemoteClient.process(AbstractRemoteClient.java:119) at org.swift.common.cli.CliClient.doWork(CliClient.java:299) at org.swift.jira.cli.JiraClient.main(JiraClient.java:146) aFi7tdC632 logged out. {code} The credentials are correct because I can get or create a project. However if I try to create a project with the --issueTypeScheme flag it fails as when updating. Finally, I tried to access directly https://<myaddress>:8443/secure/admin/ManageIssueTypeSchemes.jspa and I get a 404.
    via by Barthélémy von Haller,
  • We use JIRA command line interface CLI to link issues from scripts. The version of CLI we are using is 2.4.0. It used to work with JIRA version 4.4.4. Recently we upgraded jira to 5.1.6, this action is broken, no longer works. Here are the results and error messages we tried to test the action "linkIssue" using CLI 2.4.0 and 2.6.0 against JIRA version 4.4.4 and 5.1.6: **** CLI 2.4.0 with JIRA 4.4.4, linkIssue works: $ /opt/jira-cli/jira.sh -v --server http://irs-rsjira.oak.sap.corp --user www-rev --password '***' --action linkIssue --issue IN1-245 --toIssue IN1-248 --link 'is Review Package for' Server address: http://irs-rsjira.oak.sap.corp/rpc/soap/jirasoapservice-v2 Successful login to: http://irs-rsjira.oak.sap.corp/rpc/soap/jirasoapservice-v2 by user: www-rev URL requested: http://irs-rsjira.oak.sap.corp/secure/LinkExistingIssue.jspa?os_username=www-rev&os_password=***&id=24476&linkKey=IN1-248&linkDesc=is+Review+Package+for Request type: POST Content type: application/xml Post data: null Reading Key: atlassian.xsrf.token Val: BOC2-AB74-RK7A-CN5C|458a9f888176990be53f60f915a7c192e4b8d81b|lout Reading Key: JSESSIONID Val: CA5DD016ED8A7000E04BE1F2141A2637 Response code: 200, message: OK, url: http://irs-rsjira.oak.sap.corp/login.jsp?permissionViolation=true&os_destination=%2Fbrowse%2FIN1-245 Issue IN1-245 is Review Package for IN1-248 kv2M89DT39 logged out. *** CLI 2.4.0 with JIRA 5.1.6, linkIssue doesn't work. It appears to work but doesn't actually. There isn't an error message, but when you check in Jira you can see that the issues are not linked: $ /opt/jira-cli/jira.sh -v --server http://supjiratest.oak.sap.corp --user www-rev --password '***' --action linkIssue --issue KID-662 --toIssue KID-665 --link 'is Review Package for' Server address: http://supjiratest.oak.sap.corp/rpc/soap/jirasoapservice-v2 Successful login to: http://supjiratest.oak.sap.corp/rpc/soap/jirasoapservice-v2 by user: www-rev URL requested: http://supjiratest.oak.sap.corp/secure/LinkExistingIssue.jspa?os_username=www-rev&os_password=***&id=22473&linkKey=KID-665&linkDesc=is+Review+Package+for Request type: POST Content type: application/xml Post data: null Response code: 302, message: Moved Temporarily, url: http://supjiratest.oak.sap.corp/secure/LinkExistingIssue.jspa?os_username=www-rev&os_password=***&id=22473&linkKey=KID-665&linkDesc=is+Review+Package+for Issue KID-662 is Review Package for KID-665 Iy4B456r7m logged out. *** CLI 2.6.0 with JIRA 4.4.4, linkIssue doesn't work: $ /opt/jira-cli-2.6.0/jira.sh -v --server http://irs-rsjira.oak.sap.corp --user www-rev --password '***' --action linkIssue --issue IN1-245 --toIssue IN1-248 --link 'is Review Package for' Server address: http://irs-rsjira.oak.sap.corp/rpc/soap/jirasoapservice-v2 Successful login to: http://irs-rsjira.oak.sap.corp/rpc/soap/jirasoapservice-v2 by user: www-rev URL requested: http://irs-rsjira.oak.sap.corp/rest/api/latest/issueLink?os_username=www-rev&os_password=*** Request type: POST Content type: application/json Post data: {"fromIssueKey":"IN1-245","linkType":"is Review Package for","toIssueKey":"IN1-248"} Reading Key: JSESSIONID Val: 1E84D42E223B9A933DB2CFBF3E2E99A6 Reading Key: atlassian.xsrf.token Val: BOC2-AB74-RK7A-CN5C|3dac570bfc6cb8f44894868221aafa119bd83ef3|lin Response code: 404, message: Not Found, url: http://irs-rsjira.oak.sap.corp/rest/api/latest/issueLink?os_username=www-rev&os_password=*** Problem determination - response: 404: Not Found Problem determination - response url: http://irs-rsjira.oak.sap.corp/rest/api/latest/issueLink?os_username=www-rev&os_password=*** Problem determination - request url: http://irs-rsjira.oak.sap.corp/rest/api/latest/issueLink?os_username=www-rev&os_password=*** Remote error: Resource does not exist. Use -v to see more details. org.swift.common.cli.AbstractRemoteClient$RemoteResourceNotFoundException: Resource does not exist. Use -v to see more details. at org.swift.common.cli.AbstractRestClient.restRequestWithFullUrl(AbstractRestClient.java:537) at org.swift.common.cli.AbstractRestClient.restRequest(AbstractRestClient.java:301) at org.swift.jira.cli.JiraRealRestClient.linkIssue(JiraRealRestClient.java:319) at org.swift.jira.cli.JiraClient.linkIssue(JiraClient.java:2224) at org.swift.jira.cli.JiraClient.handleRequest(JiraClient.java:584) 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) 1HFq6G3Ok1 logged out. *** CLI 2.6.0 with JIRA 5.1.6, linkIssue doesn't work either, yields the same error as above: $ /opt/jira-cli-2.6.0/jira.sh -v --server http://supjiratest.oak.sap.corp --user www-rev --password '***' --action linkIssue --issue IN1-245 --toIssue IN1-248 --link 'is Review Package for' Server address: http://supjiratest.oak.sap.corp/rpc/soap/jirasoapservice-v2 Successful login to: http://supjiratest.oak.sap.corp/rpc/soap/jirasoapservice-v2 by user: www-rev URL requested: http://supjiratest.oak.sap.corp/rest/api/latest/issueLink?os_username=www-rev&os_password=*** Request type: POST Content type: application/json Post data: {"inwardIssue":{"key":"KID-662"},"outwardIssue":{"key":"KID-665"},"type":{"name":"is Review Package for"}} Reading Key: JSESSIONID Val: 07071A16828EC1F94DA70190EA1AA40D Reading Key: atlassian.xsrf.token Val: BOC2-AB74-RK7A-CN5C|c127a6173745273cf2f2228f7b3449d099f0ebf2|lin Response code: 404, message: Not Found, url: http://supjiratest.oak.sap.corp/rest/api/latest/issueLink?os_username=www-rev&os_password=*** Problem determination - response: 404: Not Found Problem determination - response url: http://supjiratest.oak.sap.corp/rest/api/latest/issueLink?os_username=www-rev&os_password=*** Problem determination - request url: http://supjiratest.oak.sap.corp/rest/api/latest/issueLink?os_username=www-rev&os_password=*** Remote error: Resource does not exist. Use -v to see more details. org.swift.common.cli.AbstractRemoteClient$RemoteResourceNotFoundException: Resource does not exist. Use -v to see more details. at org.swift.common.cli.AbstractRestClient.restRequestWithFullUrl(AbstractRestClient.java:537) at org.swift.common.cli.AbstractRestClient.restRequest(AbstractRestClient.java:301) at org.swift.jira.cli.JiraRealRestClient.linkIssue(JiraRealRestClient.java:319) at org.swift.jira.cli.JiraClient.linkIssue(JiraClient.java:2224) at org.swift.jira.cli.JiraClient.handleRequest(JiraClient.java:584) 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) 2IjnUgHis8 logged out. We also downloaded CLI 3.0 30 day trial version, it doesn't work either with JIRA 4.4.4 or 5.1.6. Thanks Yun
    via by Yun Xie,
  • JIRA Version v5.0.3 I am attempting to automate task creation and have successfully created tasks. However, when I try and link two subtasks together, I get the following: > jira.sh --server https://mydomain.com/bugs --action linkissue --issue "TEST-10" --toIssue "TEST-11" --link "relates" --user username --password ******** --debug User parameters (non-blank): Property path: META-INF/maven/org.swift.jira.cli/jira-cli/pom.properties clientInfo . . . . . . . . . : Client version: 2.6.0, Java: Java HotSpot(TM) 64-Bit Server VM 1.6.0_31, OS: Linux 3.4.3-1.fc17.x86_64 action . . . . . . . . . . . : linkissue debug . . . . . . . . . . . . : true server . . . . . . . . . . . : https://mydomain.com/bugs user . . . . . . . . . . . . : username password . . . . . . . . . . : *** issue . . . . . . . . . . . . : TEST-10 toIssue . . . . . . . . . . . : TEST-11 link . . . . . . . . . . . . : relates Default parameters (non-blank): verbose . . . . . . . . . . . : false quiet . . . . . . . . . . . . : false outputFormat . . . . . . . . : 1 host . . . . . . . . . . . . : localhost continue . . . . . . . . . . : false simulate . . . . . . . . . . : false service . . . . . . . . . . . : /rpc/soap/jirasoapservice-v2 loginFromStandardInput . . . : false requestType . . . . . . . . . : GET count . . . . . . . . . . . . : 2147483647 api . . . . . . . . . . . . . : 0 permissionScheme . . . . . . : Default Permission Scheme autoVersion . . . . . . . . . : false autoComponent . . . . . . . . : false autoGroup . . . . . . . . . . : false autoAdjust . . . . . . . . . : false asVersion . . . . . . . . . . : false asComponent . . . . . . . . . : false asCascadeSelect . . . . . . . : false append . . . . . . . . . . . : false appendText . . . . . . . . . : false copyLinks . . . . . . . . . . : false copyAttachments . . . . . . . : false copyComments . . . . . . . . : false copyWatchers . . . . . . . . : false copySubtasks . . . . . . . . : false copySubtaskEstimates . . . . : false useParentVersions . . . . . . : false cloneIssues . . . . . . . . . : false copyVersions . . . . . . . . : false copyComponents . . . . . . . : false copyRoleActors . . . . . . . : false replace . . . . . . . . . . . : false help . . . . . . . . . . . . : false Server address: https://mydomain.com/bugs/rpc/soap/jirasoapservice-v2 Successful login to: https://mydomain.com/bugs/rpc/soap/jirasoapservice-v2 by user: username URL requested: https://mydomain.com/bugs/rest/api/latest/issueLink?os_username=username&os_password=*** Request type: POST Content type: application/json Post data: {"inwardIssue":{"key":"TEST-10"},"outwardIssue":{"key":"TEST-11"},"type":{"name":"relates"}} cookie string: JSESSIONID=40397BD83415FD04C7950E72F68F0EA6; Path=/bugs; HttpOnly Reading Key: JSESSIONID Val: 40397BD83415FD04C7950E72F68F0EA6 cookie string: atlassian.xsrf.token=BGG4-W8YN-5RLO-7YZT|41bbac3104646b6c458d3e6e690bf221fce8093e|lin; Path=/bugs Reading Key: atlassian.xsrf.token Val: BGG4-W8YN-5RLO-7YZT|41bbac3104646b6c458d3e6e690bf221fce8093e|lin Response code: 404, message: Not Found, url: https://mydomain.com/bugs/rest/api/latest/issueLink?os_username=username&os_password=*** Problem determination - response: 404: Not Found Problem determination - response url: https://mydomain.com/bugs/rest/api/latest/issueLink?os_username=username&os_password=*** Problem determination - request url: https://mydomain.com/bugs/rest/api/latest/issueLink?os_username=username&os_password=*** Remote error: Resource does not exist. Use -v to see more details. org.swift.common.cli.AbstractRemoteClient$RemoteResourceNotFoundException: Resource does not exist. Use -v to see more details. at org.swift.common.cli.AbstractRestClient.restRequestWithFullUrl(AbstractRestClient.java:537) at org.swift.common.cli.AbstractRestClient.restRequest(AbstractRestClient.java:301) at org.swift.jira.cli.JiraRealRestClient.linkIssue(JiraRealRestClient.java:319) at org.swift.jira.cli.JiraClient.linkIssue(JiraClient.java:2224) at org.swift.jira.cli.JiraClient.handleRequest(JiraClient.java:584) 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) V6a354w2lo logged out.
    via by Rakesh Mistry,
    • org.swift.common.cli.AbstractRemoteClient$RemoteResourceNotFoundException: Resource does not exist. Use -v to see more details. at org.swift.common.cli.AbstractRestClient.restRequestWithFullUrl(AbstractRestClient.java:530) at org.swift.common.cli.AbstractRestClient.restRequest(AbstractRestClient.java:294) at org.swift.jira.cli.JiraRealRestClient.getIssue(JiraRealRestClient.java:272) at org.swift.jira.cli.JiraClient.getTimeTracking(JiraClient.java:3841) at org.swift.jira.cli.JiraClient.getIssue(JiraClient.java:3806) at org.swift.jira.cli.JiraClient.handleRequest(JiraClient.java:521) at org.swift.common.cli.AbstractRemoteClient.process(AbstractRemoteClient.java:119) at org.swift.common.cli.CliClient.doWork(CliClient.java:289) at org.swift.jira.cli.JiraClient.main(JiraClient.java:145)
    No Bugmate found.