org.swift.common.cli.CliClient$ClientException: 1 issues failed to be cloned. 0 issues cloned to project CPW.

JIRA | Jesse Guertin | 1 year ago
  1. 0

    Using actions from the [examples page|https://bobswift.atlassian.net/wiki/display/JCLI/Examples], I get a 400 Response using either the *cloneIssue* or *cloneIssues* action (see examples below). This issue may be related to [JCLI-746|https://bobswift.atlassian.net/browse/JCLI-746], but I was unable to find any details in that ticket. I can successfully perform other actions, like addComment (see example at bottom), but issue cloning is the reason we are trying this add-on. Below are some abbreviated examples of output from cloneIssue and cloneIssues actions. Please let me know if you need more information. - cloneIssue: {code} JGs-MacBook-Air:atlassian-cli-4.5.0 jguertin$ ./atlassian.sh jira --action cloneIssue --issue "CPW-82" --summary "Test CPW-82 Clone" --verbose Server address: https://middil.atlassian.net/rpc/soap/jirasoapservice-v2 URL requested: https://middil.atlassian.net/rest/api/latest/serverInfo? Request type: GET Content type: application/json Response code: 200, message: OK, url: https://middil.atlassian.net/rest/api/latest/serverInfo? json: {"baseUrl":"https:\/\/middil.atlassian.net","scmInfo":"5fb2f7e0c016d05ff672e1e32fcd963de6cf92ae","serverTime":"2015-11-06T08:29:56.304-0500","buildDate":"2015-10-28T00:00:00.000-0400","serverTitle":"JIRA","version":"7.0.0-OD-08-005","buildNumber":70107,"versionNumbers":[7,0,0]} check JIRA release: 7.0.0-OD-08-005 URL requested: https://middil.atlassian.net/rest/api/latest/field? Request type: GET Content type: application/json Response code: 200, message: OK, url: https://middil.atlassian.net/rest/api/latest/field? URL requested: https://middil.atlassian.net/rest/api/latest/issue/CPW-82?&fields=*all%2C-comment%2C-worklog Request type: GET Content type: application/json Response code: 200, message: OK, url: https://middil.atlassian.net/rest/api/latest/issue/CPW-82?&fields=*all%2C-comment%2C-worklog Id . . . . . . . . . . . . . : issuetype Name . . . . . . . . . . . . : Issue Type Description . . . . . . . . . : Required . . . . . . . . . . : false Has default . . . . . . . . . : false Has allowed values . . . . . : false Type . . . . . . . . . . . . : issuetype Item type . . . . . . . . . . : URL requested: https://middil.atlassian.net/rest/api/latest/project/CPW? Request type: GET Content type: application/json Response code: 200, message: OK, url: https://middil.atlassian.net/rest/api/latest/project/CPW? URL requested: https://middil.atlassian.net/rest/api/latest/issue/createmeta/?&expand=projects.issuetypes.fields&projectKeys=CPW&issuetypeIds=3 Request type: GET Content type: application/json Response code: 200, message: OK, url: https://middil.atlassian.net/rest/api/latest/issue/createmeta/?&expand=projects.issuetypes.fields&projectKeys=CPW&issuetypeIds=3 Id . . . . . . . . . . . . . : project Name . . . . . . . . . . . . : Project Description . . . . . . . . . : Required . . . . . . . . . . : true Has default . . . . . . . . . : false Has allowed values . . . . . : true Type . . . . . . . . . . . . : project Item type . . . . . . . . . . : ... URL requested: https://middil.atlassian.net/rest/api/latest/issue? Request type: POST Content type: application/json Post data: {"fields":{"summary":"Test CPW-82 Clone","issuetype":{"id":"3"},"components":[],"project":{"id":"11800"},"description":"","reporter":{"name":"jguertin"},"customfield_11100":"Yes","priority":{"id":"3"},"labels":[],"customfield_10008":"","customfield_10902":"","duedate":null,"customfield_10903":"","customfield_10904":"","issuelinks":[],"assignee":{"name":null}}} Response code: 400, message: Bad Request, url: https://middil.atlassian.net/rest/api/latest/issue? json: {"errorMessages":[],"errors":{"issuelinks":"Field does not support update 'issuelinks'"}} Remote error: issuelinks: Field does not support update 'issuelinks' org.swift.common.cli.AbstractRemoteClient$RemoteRestException: issuelinks: Field does not support update 'issuelinks' at org.swift.common.cli.AbstractRestClient.printErrorMessages(AbstractRestClient.java:291) at org.swift.common.cli.AbstractRestClient.restRequestWithFullUrl(AbstractRestClient.java:690) at org.swift.common.cli.AbstractRestClient.restRequestWithFullUrl(AbstractRestClient.java:542) at org.swift.common.cli.AbstractRestClient.restRequest(AbstractRestClient.java:517) at org.swift.common.cli.AbstractRestClient.restRequest(AbstractRestClient.java:505) at org.swift.common.cli.AbstractRestClient.restRequest(AbstractRestClient.java:489) at org.swift.jira.cli.JiraRestClient.createIssue(JiraRestClient.java:2054) at org.swift.jira.cli.helpers.IssueHelper.createIssue(IssueHelper.java:157) at org.swift.jira.cli.helpers.CloneIssueHelper.cloneIssue(CloneIssueHelper.java:384) at org.swift.jira.cli.helpers.CloneIssueHelper.cloneIssueRest(CloneIssueHelper.java:328) at org.swift.jira.cli.helpers.CloneIssueHelper.cloneIssue(CloneIssueHelper.java:310) at org.swift.jira.cli.JiraClient.handleRequest(JiraClient.java:934) at org.swift.common.cli.AbstractRemoteClient.process(AbstractRemoteClient.java:288) at org.swift.common.cli.CliClient.doWork(CliClient.java:433) at org.swift.jira.cli.JiraClient.main(JiraClient.java:153) {code} - cloneIssues: {code} JGs-MacBook-Air:atlassian-cli-4.5.0 jguertin$ ./atlassian.sh jira --action cloneIssues --project "CPW" --search "project = CPW AND issuekey = CPW-82" --verbose Server address: https://middil.atlassian.net/rpc/soap/jirasoapservice-v2 URL requested: https://middil.atlassian.net/rest/api/latest/serverInfo? Request type: GET Content type: application/json Response code: 200, message: OK, url: https://middil.atlassian.net/rest/api/latest/serverInfo? json: {"baseUrl":"https:\/\/middil.atlassian.net","scmInfo":"5fb2f7e0c016d05ff672e1e32fcd963de6cf92ae","serverTime":"2015-11-06T08:48:10.671-0500","buildDate":"2015-10-28T00:00:00.000-0400","serverTitle":"JIRA","version":"7.0.0-OD-08-005","buildNumber":70107,"versionNumbers":[7,0,0]} check JIRA release: 7.0.0-OD-08-005 Search: project = CPW AND issuekey = CPW-82 URL requested: https://middil.atlassian.net/rest/api/latest/project/CPW? Request type: GET Content type: application/json Response code: 200, message: OK, url: https://middil.atlassian.net/rest/api/latest/project/CPW? URL requested: https://middil.atlassian.net/rest/api/latest/search? Request type: POST Content type: application/json Post data: {"jql":"project = CPW AND issuekey = CPW-82","maxResults":50,"fields":["*all","-comment","-worklog"],"startAt":0} Response code: 200, message: OK, url: https://middil.atlassian.net/rest/api/latest/search? URL requested: https://middil.atlassian.net/rest/api/latest/field? Request type: GET Content type: application/json Response code: 200, message: OK, url: https://middil.atlassian.net/rest/api/latest/field? URL requested: https://middil.atlassian.net/rest/api/latest/issue/CPW-82?&fields=*all%2C-comment%2C-worklog Request type: GET Content type: application/json Response code: 200, message: OK, url: https://middil.atlassian.net/rest/api/latest/issue/CPW-82?&fields=*all%2C-comment%2C-worklog Id . . . . . . . . . . . . . : issuetype Name . . . . . . . . . . . . : Issue Type Description . . . . . . . . . : Required . . . . . . . . . . : false Has default . . . . . . . . . : false Has allowed values . . . . . : false Type . . . . . . . . . . . . : issuetype Item type . . . . . . . . . . : ... URL requested: https://middil.atlassian.net/rest/api/latest/issue? Request type: POST Content type: application/json Post data: {"fields":{"summary":"Test Task Ticket","issuetype":{"id":"3"},"components":[],"project":{"id":"11800"},"description":"","reporter":{"name":"jguertin"},"customfield_11100":"Yes","priority":{"id":"3"},"labels":[],"customfield_10008":"","customfield_10902":"","duedate":null,"customfield_10903":"","customfield_10904":"","issuelinks":[],"assignee":{"name":null}}} Response code: 400, message: Bad Request, url: https://middil.atlassian.net/rest/api/latest/issue? json: {"errorMessages":[],"errors":{"issuelinks":"Field does not support update 'issuelinks'"}} issuelinks: Field does not support update 'issuelinks' Clone of issue CPW-82 failed. Client error: 1 issues failed to be cloned. 0 issues cloned to project CPW. org.swift.common.cli.CliClient$ClientException: 1 issues failed to be cloned. 0 issues cloned to project CPW. at org.swift.jira.cli.helpers.CloneIssueHelper.cloneIssues(CloneIssueHelper.java:480) at org.swift.jira.cli.JiraClient.handleRequest(JiraClient.java:937) at org.swift.common.cli.AbstractRemoteClient.process(AbstractRemoteClient.java:288) at org.swift.common.cli.CliClient.doWork(CliClient.java:433) at org.swift.jira.cli.JiraClient.main(JiraClient.java:153) {code} - addComment: {code} JGs-MacBook-Air:atlassian-cli-4.5.0 jguertin$ ./atlassian.sh jira --action addComment --issue "CPW-82" --comment "Test Comment #2 @ 8:36am" --verbose Server address: https://middil.atlassian.net/rpc/soap/jirasoapservice-v2 URL requested: https://middil.atlassian.net/rest/api/latest/serverInfo? Request type: GET Content type: application/json Response code: 200, message: OK, url: https://middil.atlassian.net/rest/api/latest/serverInfo? json: {"baseUrl":"https:\/\/middil.atlassian.net","scmInfo":"5fb2f7e0c016d05ff672e1e32fcd963de6cf92ae","serverTime":"2015-11-06T08:35:59.328-0500","buildDate":"2015-10-28T00:00:00.000-0400","serverTitle":"JIRA","version":"7.0.0-OD-08-005","buildNumber":70107,"versionNumbers":[7,0,0]} check JIRA release: 7.0.0-OD-08-005 URL requested: https://middil.atlassian.net/rest/api/latest/issue/CPW-82?&fields=*all%2C-comment%2C-worklog Request type: GET Content type: application/json Response code: 200, message: OK, url: https://middil.atlassian.net/rest/api/latest/issue/CPW-82?&fields=*all%2C-comment%2C-worklog URL requested: https://middil.atlassian.net/rest/api/latest/issue/CPW-82/comment? Request type: POST Content type: application/json Post data: {"body":"Test Comment #2 @ 8:36am"} Response code: 201, message: Created, url: https://middil.atlassian.net/rest/api/latest/issue/CPW-82/comment? Comment added to CPW-82. {code}

    JIRA | 1 year ago | Jesse Guertin
    org.swift.common.cli.CliClient$ClientException: 1 issues failed to be cloned. 0 issues cloned to project CPW.
  2. 0

    Using actions from the [examples page|https://bobswift.atlassian.net/wiki/display/JCLI/Examples], I get a 400 Response using either the *cloneIssue* or *cloneIssues* action (see examples below). This issue may be related to [JCLI-746|https://bobswift.atlassian.net/browse/JCLI-746], but I was unable to find any details in that ticket. I can successfully perform other actions, like addComment (see example at bottom), but issue cloning is the reason we are trying this add-on. Below are some abbreviated examples of output from cloneIssue and cloneIssues actions. Please let me know if you need more information. - cloneIssue: {code} JGs-MacBook-Air:atlassian-cli-4.5.0 jguertin$ ./atlassian.sh jira --action cloneIssue --issue "CPW-82" --summary "Test CPW-82 Clone" --verbose Server address: https://middil.atlassian.net/rpc/soap/jirasoapservice-v2 URL requested: https://middil.atlassian.net/rest/api/latest/serverInfo? Request type: GET Content type: application/json Response code: 200, message: OK, url: https://middil.atlassian.net/rest/api/latest/serverInfo? json: {"baseUrl":"https:\/\/middil.atlassian.net","scmInfo":"5fb2f7e0c016d05ff672e1e32fcd963de6cf92ae","serverTime":"2015-11-06T08:29:56.304-0500","buildDate":"2015-10-28T00:00:00.000-0400","serverTitle":"JIRA","version":"7.0.0-OD-08-005","buildNumber":70107,"versionNumbers":[7,0,0]} check JIRA release: 7.0.0-OD-08-005 URL requested: https://middil.atlassian.net/rest/api/latest/field? Request type: GET Content type: application/json Response code: 200, message: OK, url: https://middil.atlassian.net/rest/api/latest/field? URL requested: https://middil.atlassian.net/rest/api/latest/issue/CPW-82?&fields=*all%2C-comment%2C-worklog Request type: GET Content type: application/json Response code: 200, message: OK, url: https://middil.atlassian.net/rest/api/latest/issue/CPW-82?&fields=*all%2C-comment%2C-worklog Id . . . . . . . . . . . . . : issuetype Name . . . . . . . . . . . . : Issue Type Description . . . . . . . . . : Required . . . . . . . . . . : false Has default . . . . . . . . . : false Has allowed values . . . . . : false Type . . . . . . . . . . . . : issuetype Item type . . . . . . . . . . : URL requested: https://middil.atlassian.net/rest/api/latest/project/CPW? Request type: GET Content type: application/json Response code: 200, message: OK, url: https://middil.atlassian.net/rest/api/latest/project/CPW? URL requested: https://middil.atlassian.net/rest/api/latest/issue/createmeta/?&expand=projects.issuetypes.fields&projectKeys=CPW&issuetypeIds=3 Request type: GET Content type: application/json Response code: 200, message: OK, url: https://middil.atlassian.net/rest/api/latest/issue/createmeta/?&expand=projects.issuetypes.fields&projectKeys=CPW&issuetypeIds=3 Id . . . . . . . . . . . . . : project Name . . . . . . . . . . . . : Project Description . . . . . . . . . : Required . . . . . . . . . . : true Has default . . . . . . . . . : false Has allowed values . . . . . : true Type . . . . . . . . . . . . : project Item type . . . . . . . . . . : ... URL requested: https://middil.atlassian.net/rest/api/latest/issue? Request type: POST Content type: application/json Post data: {"fields":{"summary":"Test CPW-82 Clone","issuetype":{"id":"3"},"components":[],"project":{"id":"11800"},"description":"","reporter":{"name":"jguertin"},"customfield_11100":"Yes","priority":{"id":"3"},"labels":[],"customfield_10008":"","customfield_10902":"","duedate":null,"customfield_10903":"","customfield_10904":"","issuelinks":[],"assignee":{"name":null}}} Response code: 400, message: Bad Request, url: https://middil.atlassian.net/rest/api/latest/issue? json: {"errorMessages":[],"errors":{"issuelinks":"Field does not support update 'issuelinks'"}} Remote error: issuelinks: Field does not support update 'issuelinks' org.swift.common.cli.AbstractRemoteClient$RemoteRestException: issuelinks: Field does not support update 'issuelinks' at org.swift.common.cli.AbstractRestClient.printErrorMessages(AbstractRestClient.java:291) at org.swift.common.cli.AbstractRestClient.restRequestWithFullUrl(AbstractRestClient.java:690) at org.swift.common.cli.AbstractRestClient.restRequestWithFullUrl(AbstractRestClient.java:542) at org.swift.common.cli.AbstractRestClient.restRequest(AbstractRestClient.java:517) at org.swift.common.cli.AbstractRestClient.restRequest(AbstractRestClient.java:505) at org.swift.common.cli.AbstractRestClient.restRequest(AbstractRestClient.java:489) at org.swift.jira.cli.JiraRestClient.createIssue(JiraRestClient.java:2054) at org.swift.jira.cli.helpers.IssueHelper.createIssue(IssueHelper.java:157) at org.swift.jira.cli.helpers.CloneIssueHelper.cloneIssue(CloneIssueHelper.java:384) at org.swift.jira.cli.helpers.CloneIssueHelper.cloneIssueRest(CloneIssueHelper.java:328) at org.swift.jira.cli.helpers.CloneIssueHelper.cloneIssue(CloneIssueHelper.java:310) at org.swift.jira.cli.JiraClient.handleRequest(JiraClient.java:934) at org.swift.common.cli.AbstractRemoteClient.process(AbstractRemoteClient.java:288) at org.swift.common.cli.CliClient.doWork(CliClient.java:433) at org.swift.jira.cli.JiraClient.main(JiraClient.java:153) {code} - cloneIssues: {code} JGs-MacBook-Air:atlassian-cli-4.5.0 jguertin$ ./atlassian.sh jira --action cloneIssues --project "CPW" --search "project = CPW AND issuekey = CPW-82" --verbose Server address: https://middil.atlassian.net/rpc/soap/jirasoapservice-v2 URL requested: https://middil.atlassian.net/rest/api/latest/serverInfo? Request type: GET Content type: application/json Response code: 200, message: OK, url: https://middil.atlassian.net/rest/api/latest/serverInfo? json: {"baseUrl":"https:\/\/middil.atlassian.net","scmInfo":"5fb2f7e0c016d05ff672e1e32fcd963de6cf92ae","serverTime":"2015-11-06T08:48:10.671-0500","buildDate":"2015-10-28T00:00:00.000-0400","serverTitle":"JIRA","version":"7.0.0-OD-08-005","buildNumber":70107,"versionNumbers":[7,0,0]} check JIRA release: 7.0.0-OD-08-005 Search: project = CPW AND issuekey = CPW-82 URL requested: https://middil.atlassian.net/rest/api/latest/project/CPW? Request type: GET Content type: application/json Response code: 200, message: OK, url: https://middil.atlassian.net/rest/api/latest/project/CPW? URL requested: https://middil.atlassian.net/rest/api/latest/search? Request type: POST Content type: application/json Post data: {"jql":"project = CPW AND issuekey = CPW-82","maxResults":50,"fields":["*all","-comment","-worklog"],"startAt":0} Response code: 200, message: OK, url: https://middil.atlassian.net/rest/api/latest/search? URL requested: https://middil.atlassian.net/rest/api/latest/field? Request type: GET Content type: application/json Response code: 200, message: OK, url: https://middil.atlassian.net/rest/api/latest/field? URL requested: https://middil.atlassian.net/rest/api/latest/issue/CPW-82?&fields=*all%2C-comment%2C-worklog Request type: GET Content type: application/json Response code: 200, message: OK, url: https://middil.atlassian.net/rest/api/latest/issue/CPW-82?&fields=*all%2C-comment%2C-worklog Id . . . . . . . . . . . . . : issuetype Name . . . . . . . . . . . . : Issue Type Description . . . . . . . . . : Required . . . . . . . . . . : false Has default . . . . . . . . . : false Has allowed values . . . . . : false Type . . . . . . . . . . . . : issuetype Item type . . . . . . . . . . : ... URL requested: https://middil.atlassian.net/rest/api/latest/issue? Request type: POST Content type: application/json Post data: {"fields":{"summary":"Test Task Ticket","issuetype":{"id":"3"},"components":[],"project":{"id":"11800"},"description":"","reporter":{"name":"jguertin"},"customfield_11100":"Yes","priority":{"id":"3"},"labels":[],"customfield_10008":"","customfield_10902":"","duedate":null,"customfield_10903":"","customfield_10904":"","issuelinks":[],"assignee":{"name":null}}} Response code: 400, message: Bad Request, url: https://middil.atlassian.net/rest/api/latest/issue? json: {"errorMessages":[],"errors":{"issuelinks":"Field does not support update 'issuelinks'"}} issuelinks: Field does not support update 'issuelinks' Clone of issue CPW-82 failed. Client error: 1 issues failed to be cloned. 0 issues cloned to project CPW. org.swift.common.cli.CliClient$ClientException: 1 issues failed to be cloned. 0 issues cloned to project CPW. at org.swift.jira.cli.helpers.CloneIssueHelper.cloneIssues(CloneIssueHelper.java:480) at org.swift.jira.cli.JiraClient.handleRequest(JiraClient.java:937) at org.swift.common.cli.AbstractRemoteClient.process(AbstractRemoteClient.java:288) at org.swift.common.cli.CliClient.doWork(CliClient.java:433) at org.swift.jira.cli.JiraClient.main(JiraClient.java:153) {code} - addComment: {code} JGs-MacBook-Air:atlassian-cli-4.5.0 jguertin$ ./atlassian.sh jira --action addComment --issue "CPW-82" --comment "Test Comment #2 @ 8:36am" --verbose Server address: https://middil.atlassian.net/rpc/soap/jirasoapservice-v2 URL requested: https://middil.atlassian.net/rest/api/latest/serverInfo? Request type: GET Content type: application/json Response code: 200, message: OK, url: https://middil.atlassian.net/rest/api/latest/serverInfo? json: {"baseUrl":"https:\/\/middil.atlassian.net","scmInfo":"5fb2f7e0c016d05ff672e1e32fcd963de6cf92ae","serverTime":"2015-11-06T08:35:59.328-0500","buildDate":"2015-10-28T00:00:00.000-0400","serverTitle":"JIRA","version":"7.0.0-OD-08-005","buildNumber":70107,"versionNumbers":[7,0,0]} check JIRA release: 7.0.0-OD-08-005 URL requested: https://middil.atlassian.net/rest/api/latest/issue/CPW-82?&fields=*all%2C-comment%2C-worklog Request type: GET Content type: application/json Response code: 200, message: OK, url: https://middil.atlassian.net/rest/api/latest/issue/CPW-82?&fields=*all%2C-comment%2C-worklog URL requested: https://middil.atlassian.net/rest/api/latest/issue/CPW-82/comment? Request type: POST Content type: application/json Post data: {"body":"Test Comment #2 @ 8:36am"} Response code: 201, message: Created, url: https://middil.atlassian.net/rest/api/latest/issue/CPW-82/comment? Comment added to CPW-82. {code}

    JIRA | 1 year ago | Jesse Guertin
    org.swift.common.cli.CliClient$ClientException: 1 issues failed to be cloned. 0 issues cloned to project CPW.
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0

    After I type the command as below: ./jira.sh --action cloneIssues --search 'project = IOS150801 AND issuetype in ("Test Scenario", "Test Case") ' --verbose Using JIRA Cloud and CLI is 5.1 Snapshot The result will shown as below and cannot clone the issues: Server address: https://appunique.atlassian.net/rpc/soap/jirasoapservice-v2 URL requested: https://appunique.atlassian.net/rest/api/latest/serverInfo? Request type: GET Content type: application/json Response code: 200, message: OK, url: https://appunique.atlassian.net/rest/api/latest/serverInfo? json: {"baseUrl":"https:\/\/appunique.atlassian.net","buildNumber":71001,"serverTitle":"JIRA","serverTime":"2015-12-21T00:22:29.191+0800","scmInfo":"2ba8c0f6d804dd6099ab1d311f328e634649726f","buildDate":"2015-12-04T00:00:00.000+0800","versionNumbers":[7,1,0],"version":"7.1.0-OD-02-030"} check JIRA release: 7.1.0-OD-02-030 Search: project = IOS150801 AND issuetype in ("Test Scenario", "Test Case") URL requested: https://appunique.atlassian.net/rest/api/latest/search? Request type: POST Content type: application/json Post data: {"jql":"project = IOS150801 AND issuetype in (\"Test Scenario\", \"Test Case\")","startAt":0,"maxResults":50,"fields":["*all","-comment","-worklog"]} Response code: 200, message: OK, url: https://appunique.atlassian.net/rest/api/latest/search? URL requested: https://appunique.atlassian.net/rest/api/latest/search? Request type: POST Content type: application/json Post data: {"jql":"project = IOS150801 AND issuetype in (\"Test Scenario\", \"Test Case\")","startAt":50,"maxResults":50,"fields":["*all","-comment","-worklog"]} Response code: 200, message: OK, url: https://appunique.atlassian.net/rest/api/latest/search? URL requested: https://appunique.atlassian.net/rest/api/latest/search? Request type: POST Content type: application/json Post data: {"jql":"project = IOS150801 AND issuetype in (\"Test Scenario\", \"Test Case\")","startAt":100,"maxResults":50,"fields":["*all","-comment","-worklog"]} Response code: 200, message: OK, url: https://appunique.atlassian.net/rest/api/latest/search? URL requested: https://appunique.atlassian.net/rest/api/latest/search? Request type: POST Content type: application/json Post data: {"jql":"project = IOS150801 AND issuetype in (\"Test Scenario\", \"Test Case\")","startAt":150,"maxResults":50,"fields":["*all","-comment","-worklog"]} Response code: 200, message: OK, url: https://appunique.atlassian.net/rest/api/latest/search? URL requested: https://appunique.atlassian.net/rest/api/latest/search? Request type: POST Content type: application/json Post data: {"jql":"project = IOS150801 AND issuetype in (\"Test Scenario\", \"Test Case\")","startAt":200,"maxResults":50,"fields":["*all","-comment","-worklog"]} Response code: 200, message: OK, url: https://appunique.atlassian.net/rest/api/latest/search? URL requested: https://appunique.atlassian.net/rest/api/latest/search? Request type: POST Content type: application/json Post data: {"jql":"project = IOS150801 AND issuetype in (\"Test Scenario\", \"Test Case\")","startAt":250,"maxResults":50,"fields":["*all","-comment","-worklog"]} Response code: 200, message: OK, url: https://appunique.atlassian.net/rest/api/latest/search? URL requested: https://appunique.atlassian.net/rest/api/latest/search? Request type: POST Content type: application/json Post data: {"jql":"project = IOS150801 AND issuetype in (\"Test Scenario\", \"Test Case\")","startAt":300,"maxResults":50,"fields":["*all","-comment","-worklog"]} Response code: 200, message: OK, url: https://appunique.atlassian.net/rest/api/latest/search? URL requested: https://appunique.atlassian.net/rest/api/latest/search? Request type: POST Content type: application/json Post data: {"jql":"project = IOS150801 AND issuetype in (\"Test Scenario\", \"Test Case\")","startAt":350,"maxResults":50,"fields":["*all","-comment","-worklog"]} Response code: 200, message: OK, url: https://appunique.atlassian.net/rest/api/latest/search? URL requested: https://appunique.atlassian.net/rest/api/latest/search? Request type: POST Content type: application/json Post data: {"jql":"project = IOS150801 AND issuetype in (\"Test Scenario\", \"Test Case\")","startAt":400,"maxResults":50,"fields":["*all","-comment","-worklog"]} Response code: 200, message: OK, url: https://appunique.atlassian.net/rest/api/latest/search? URL requested: https://appunique.atlassian.net/rest/api/latest/search? Request type: POST Content type: application/json Post data: {"jql":"project = IOS150801 AND issuetype in (\"Test Scenario\", \"Test Case\")","startAt":450,"maxResults":50,"fields":["*all","-comment","-worklog"]} Response code: 200, message: OK, url: https://appunique.atlassian.net/rest/api/latest/search? URL requested: https://appunique.atlassian.net/rest/api/latest/search? Request type: POST Content type: application/json Post data: {"jql":"project = IOS150801 AND issuetype in (\"Test Scenario\", \"Test Case\")","startAt":500,"maxResults":50,"fields":["*all","-comment","-worklog"]} Response code: 200, message: OK, url: https://appunique.atlassian.net/rest/api/latest/search? URL requested: https://appunique.atlassian.net/rest/api/latest/field? Request type: GET Content type: application/json Response code: 200, message: OK, url: https://appunique.atlassian.net/rest/api/latest/field? URL requested: https://appunique.atlassian.net/rest/api/latest/issue/IOS150801-568?&fields=*all%2C-comment%2C-worklog Request type: GET Content type: application/json Response code: 200, message: OK, url: https://appunique.atlassian.net/rest/api/latest/issue/IOS150801-568?&fields=*all%2C-comment%2C-worklog Id . . . . . . . . . . . . . : issuetype Name . . . . . . . . . . . . : Issue Type Description . . . . . . . . . : Required . . . . . . . . . . : false Has default . . . . . . . . . : false Has allowed values . . . . . : false Type . . . . . . . . . . . . : issuetype Item type . . . . . . . . . . : URL requested: https://appunique.atlassian.net/rest/api/latest/project/IOS150801? Request type: GET Content type: application/json Response code: 200, message: OK, url: https://appunique.atlassian.net/rest/api/latest/project/IOS150801? URL requested: https://appunique.atlassian.net/rest/api/latest/issue/createmeta/?&issuetypeIds=10301&projectKeys=IOS150801&expand=projects.issuetypes.fields Request type: GET Content type: application/json Response code: 200, message: OK, url: https://appunique.atlassian.net/rest/api/latest/issue/createmeta/?&issuetypeIds=10301&projectKeys=IOS150801&expand=projects.issuetypes.fields Id . . . . . . . . . . . . . : summary Name . . . . . . . . . . . . : Summary Description . . . . . . . . . : Required . . . . . . . . . . : true Has default . . . . . . . . . : false Has allowed values . . . . . : false Type . . . . . . . . . . . . : string Item type . . . . . . . . . . : Id . . . . . . . . . . . . . : reporter Name . . . . . . . . . . . . : Reporter Description . . . . . . . . . : Required . . . . . . . . . . : true Has default . . . . . . . . . : false Has allowed values . . . . . : false Type . . . . . . . . . . . . : user Item type . . . . . . . . . . : Id . . . . . . . . . . . . . : priority Name . . . . . . . . . . . . : Priority Description . . . . . . . . . : Required . . . . . . . . . . : false Has default . . . . . . . . . : true Has allowed values . . . . . : true Type . . . . . . . . . . . . : priority Item type . . . . . . . . . . : Id . . . . . . . . . . . . . : description Name . . . . . . . . . . . . : Description Description . . . . . . . . . : Required . . . . . . . . . . : false Has default . . . . . . . . . : false Has allowed values . . . . . : false Type . . . . . . . . . . . . : string Item type . . . . . . . . . . : Id . . . . . . . . . . . . . : customfield_10002 Name . . . . . . . . . . . . : Sprint Description . . . . . . . . . : Required . . . . . . . . . . : false Has default . . . . . . . . . : false Has allowed values . . . . . : false Type . . . . . . . . . . . . : array Item type . . . . . . . . . . : string Custom . . . . . . . . . . . : true Custom type . . . . . . . . . : com.pyxis.greenhopper.jira:gh-sprint Custom id . . . . . . . . . . : 10002 Id . . . . . . . . . . . . . : customfield_10003 Name . . . . . . . . . . . . : Epic Link Description . . . . . . . . . : Required . . . . . . . . . . : false Has default . . . . . . . . . : false Has allowed values . . . . . : false Type . . . . . . . . . . . . : any Item type . . . . . . . . . . : Custom . . . . . . . . . . . : true Custom type . . . . . . . . . : com.pyxis.greenhopper.jira:gh-epic-link Custom id . . . . . . . . . . : 10003 Id . . . . . . . . . . . . . : issuelinks Name . . . . . . . . . . . . : Linked Issues Description . . . . . . . . . : Required . . . . . . . . . . : false Has default . . . . . . . . . : false Has allowed values . . . . . : false Type . . . . . . . . . . . . : array Item type . . . . . . . . . . : issuelinks Id . . . . . . . . . . . . . : labels Name . . . . . . . . . . . . : Labels Description . . . . . . . . . : Required . . . . . . . . . . : false Has default . . . . . . . . . : false Has allowed values . . . . . : false Type . . . . . . . . . . . . : array Item type . . . . . . . . . . : string Id . . . . . . . . . . . . . : parent Name . . . . . . . . . . . . : Parent Description . . . . . . . . . : Required . . . . . . . . . . : true Has default . . . . . . . . . : false Has allowed values . . . . . : false Type . . . . . . . . . . . . : issuelink Item type . . . . . . . . . . : Id . . . . . . . . . . . . . : project Name . . . . . . . . . . . . : Project Description . . . . . . . . . : Required . . . . . . . . . . : true Has default . . . . . . . . . : false Has allowed values . . . . . : true Type . . . . . . . . . . . . : project Item type . . . . . . . . . . : Id . . . . . . . . . . . . . : components Name . . . . . . . . . . . . : Component/s Description . . . . . . . . . : Required . . . . . . . . . . : false Has default . . . . . . . . . : false Has allowed values . . . . . : true Type . . . . . . . . . . . . : array Item type . . . . . . . . . . : component Id . . . . . . . . . . . . . : customfield_10306 Name . . . . . . . . . . . . : Testing Steps Description . . . . . . . . . : Required . . . . . . . . . . : true Has default . . . . . . . . . : false Has allowed values . . . . . : false Type . . . . . . . . . . . . : string Item type . . . . . . . . . . : Custom . . . . . . . . . . . : true Custom type . . . . . . . . . : com.atlassian.jira.plugin.system.customfieldtypes:textarea Custom id . . . . . . . . . . : 10306 Id . . . . . . . . . . . . . : customfield_10309 Name . . . . . . . . . . . . : Test Case ID Description . . . . . . . . . : Required . . . . . . . . . . : true Has default . . . . . . . . . : false Has allowed values . . . . . : false Type . . . . . . . . . . . . : string Item type . . . . . . . . . . : Custom . . . . . . . . . . . : true Custom type . . . . . . . . . : com.atlassian.jira.plugin.system.customfieldtypes:textfield Custom id . . . . . . . . . . : 10309 Id . . . . . . . . . . . . . : customfield_10308 Name . . . . . . . . . . . . : Test Scenario ID Description . . . . . . . . . : Required . . . . . . . . . . : true Has default . . . . . . . . . : false Has allowed values . . . . . : false Type . . . . . . . . . . . . : string Item type . . . . . . . . . . : Custom . . . . . . . . . . . : true Custom type . . . . . . . . . : com.atlassian.jira.plugin.system.customfieldtypes:textfield Custom id . . . . . . . . . . : 10308 Id . . . . . . . . . . . . . : customfield_10303 Name . . . . . . . . . . . . : Test Actual Result Description . . . . . . . . . : Required . . . . . . . . . . : false Has default . . . . . . . . . : false Has allowed values . . . . . : false Type . . . . . . . . . . . . : string Item type . . . . . . . . . . : Custom . . . . . . . . . . . : true Custom type . . . . . . . . . : com.atlassian.jira.plugin.system.customfieldtypes:textarea Custom id . . . . . . . . . . : 10303 Id . . . . . . . . . . . . . : customfield_10302 Name . . . . . . . . . . . . : Test Expected Result Description . . . . . . . . . : Required . . . . . . . . . . : true Has default . . . . . . . . . : false Has allowed values . . . . . : false Type . . . . . . . . . . . . : string Item type . . . . . . . . . . : Custom . . . . . . . . . . . : true Custom type . . . . . . . . . : com.atlassian.jira.plugin.system.customfieldtypes:textarea Custom id . . . . . . . . . . : 10302 Id . . . . . . . . . . . . . : customfield_10305 Name . . . . . . . . . . . . : Testing Comment Description . . . . . . . . . : Required . . . . . . . . . . : false Has default . . . . . . . . . : false Has allowed values . . . . . : false Type . . . . . . . . . . . . : string Item type . . . . . . . . . . : Custom . . . . . . . . . . . : true Custom type . . . . . . . . . : com.atlassian.jira.plugin.system.customfieldtypes:textarea Custom id . . . . . . . . . . : 10305 Id . . . . . . . . . . . . . : customfield_10304 Name . . . . . . . . . . . . : Testing Date Description . . . . . . . . . : Required . . . . . . . . . . : false Has default . . . . . . . . . : false Has allowed values . . . . . : false Type . . . . . . . . . . . . : date Item type . . . . . . . . . . : Custom . . . . . . . . . . . : true Custom type . . . . . . . . . : com.atlassian.jira.plugin.system.customfieldtypes:datepicker Custom id . . . . . . . . . . : 10304 Id . . . . . . . . . . . . . : fixVersions Name . . . . . . . . . . . . : Fix Version/s Description . . . . . . . . . : Required . . . . . . . . . . : false Has default . . . . . . . . . : false Has allowed values . . . . . : true Type . . . . . . . . . . . . : array Item type . . . . . . . . . . : version Id . . . . . . . . . . . . . : customfield_10310 Name . . . . . . . . . . . . : Test Scenario Type Description . . . . . . . . . : Required . . . . . . . . . . : true Has default . . . . . . . . . : false Has allowed values . . . . . : true Type . . . . . . . . . . . . : option Item type . . . . . . . . . . : Custom . . . . . . . . . . . : true Custom type . . . . . . . . . : com.atlassian.jira.plugin.system.customfieldtypes:select Custom id . . . . . . . . . . : 10310 Id . . . . . . . . . . . . . : customfield_10102 Name . . . . . . . . . . . . : CSR Mesh Pages and Functions Description . . . . . . . . . : Required . . . . . . . . . . : true Has default . . . . . . . . . : false Has allowed values . . . . . : true Type . . . . . . . . . . . . : option Item type . . . . . . . . . . : Custom . . . . . . . . . . . : true Custom type . . . . . . . . . : com.atlassian.jira.plugin.system.customfieldtypes:select Custom id . . . . . . . . . . : 10102 Id . . . . . . . . . . . . . : assignee Name . . . . . . . . . . . . : Assignee Description . . . . . . . . . : Required . . . . . . . . . . : false Has default . . . . . . . . . : true Has allowed values . . . . . : false Type . . . . . . . . . . . . : user Item type . . . . . . . . . . : Id . . . . . . . . . . . . . : attachment Name . . . . . . . . . . . . : Attachment Description . . . . . . . . . : Required . . . . . . . . . . : false Has default . . . . . . . . . : false Has allowed values . . . . . : false Type . . . . . . . . . . . . : array Item type . . . . . . . . . . : attachment Id . . . . . . . . . . . . . : customfield_10202 Name . . . . . . . . . . . . : Finalize Version Description . . . . . . . . . : Required . . . . . . . . . . : false Has default . . . . . . . . . : false Has allowed values . . . . . : false Type . . . . . . . . . . . . : string Item type . . . . . . . . . . : Custom . . . . . . . . . . . : true Custom type . . . . . . . . . : com.atlassian.jira.plugin.system.customfieldtypes:textfield Custom id . . . . . . . . . . : 10202 Id . . . . . . . . . . . . . : customfield_10301 Name . . . . . . . . . . . . : Test Status Description . . . . . . . . . : Required . . . . . . . . . . : true Has default . . . . . . . . . : false Has allowed values . . . . . : true Type . . . . . . . . . . . . : option Item type . . . . . . . . . . : Custom . . . . . . . . . . . : true Custom type . . . . . . . . . : com.atlassian.jira.plugin.system.customfieldtypes:select Custom id . . . . . . . . . . : 10301 URL requested: https://appunique.atlassian.net/rest/api/latest/issue? Request type: POST Content type: application/json Post data: {"fields":{"summary":"ATS002-1 - The QRCode Scanner is functionable","customfield_10102":{"id":"10112"},"customfield_10306":"\"1. Open the QRCode Scanner\r\n2. Scan the QR Code\"","customfield_10309":"ATS002-1","customfield_10308":"ATS002","customfield_10303":"As same","issuetype":{"id":"10301"},"customfield_10302":"The QRCode scanner will scan the QR Code and return the message of the QRCode","customfield_10305":"","customfield_10304":"2015-10-13","labels":[],"parent":"{\"id\":\"10652\",\"self\":\"https:\\\/\\\/appunique.atlassian.net\\\/rest\\\/api\\\/2\\\/issue\\\/10652\",\"key\":\"IOS150801-117\",\"fields\":{\"summary\":\"ATS002\\tQRCode function is functionable\",\"issuetype\":{\"id\":\"10300\",\"subtask\":false,\"avatarId\":10322,\"description\":\"Testing Scenario of the apps and server side\",\"iconUrl\":\"https:\\\/\\\/appunique.atlassian.net\\\/secure\\\/viewavatar?size=xsmall&avatarId=10322&avatarType=issuetype\",\"name\":\"Test Scenario\",\"self\":\"https:\\\/\\\/appunique.atlassian.net\\\/rest\\\/api\\\/2\\\/issuetype\\\/10300\"},\"status\":{\"id\":\"5\",\"description\":\"A resolution has been taken, and it is awaiting verification by reporter. From here issues are either reopened, or are closed.\",\"iconUrl\":\"https:\\\/\\\/appunique.atlassian.net\\\/images\\\/icons\\\/statuses\\\/resolved.png\",\"name\":\"Resolved\",\"statusCategory\":{\"id\":3,\"colorName\":\"green\",\"name\":\"Done\",\"self\":\"https:\\\/\\\/appunique.atlassian.net\\\/rest\\\/api\\\/2\\\/statuscategory\\\/3\",\"key\":\"done\"},\"self\":\"https:\\\/\\\/appunique.atlassian.net\\\/rest\\\/api\\\/2\\\/status\\\/5\"},\"priority\":{\"id\":\"3\",\"iconUrl\":\"https:\\\/\\\/appunique.atlassian.net\\\/images\\\/icons\\\/priorities\\\/medium.svg\",\"name\":\"Medium\",\"self\":\"https:\\\/\\\/appunique.atlassian.net\\\/rest\\\/api\\\/2\\\/priority\\\/3\"}}}","assignee":{"name":"admin"},"fixVersions":[],"customfield_10202":"207b104","reporter":{"name":"riki.tsui"},"project":{"id":"10001"},"description":"The QRCode Scanner is functionable","priority":{"id":"3"},"customfield_10002":"","customfield_10310":{"id":"10339"},"customfield_10301":{"id":"10327"},"customfield_10003":"","components":[]}} Response code: 400, message: Bad Request, url: https://appunique.atlassian.net/rest/api/latest/issue? json: {"errors":{"parent":"data was not an object"},"errorMessages":[]} parent: data was not an object Clone of issue IOS150801-568 failed. Client error: 1 issues failed to be cloned. 0 issues cloned. org.swift.common.cli.CliClient$ClientException: 1 issues failed to be cloned. 0 issues cloned. at org.swift.jira.cli.helpers.CloneIssueHelper.cloneIssues(CloneIssueHelper.java:498) at org.swift.jira.cli.JiraClient.handleRequest(JiraClient.java:963) at org.swift.common.cli.AbstractRemoteClient.process(AbstractRemoteClient.java:312) at org.swift.common.cli.CliClient.doWork(CliClient.java:433) at org.swift.jira.cli.JiraClient.main(JiraClient.java:155)

    JIRA | 12 months ago | Riki
    org.swift.common.cli.CliClient$ClientException: 1 issues failed to be cloned. 0 issues cloned.

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. org.swift.common.cli.CliClient$ClientException

      1 issues failed to be cloned. 0 issues cloned to project CPW.

      at org.swift.jira.cli.helpers.CloneIssueHelper.cloneIssues()
    2. org.swift.jira
      JiraClient.handleRequest
      1. org.swift.jira.cli.helpers.CloneIssueHelper.cloneIssues(CloneIssueHelper.java:480)
      2. org.swift.jira.cli.JiraClient.handleRequest(JiraClient.java:937)
      2 frames
    3. org.swift.common
      CliClient.doWork
      1. org.swift.common.cli.AbstractRemoteClient.process(AbstractRemoteClient.java:288)
      2. org.swift.common.cli.CliClient.doWork(CliClient.java:433)
      2 frames
    4. org.swift.jira
      JiraClient.main
      1. org.swift.jira.cli.JiraClient.main(JiraClient.java:153)
      1 frame