{"action":"created","issue":{"url":"https://api.github.com/repos/rcarz/jira-client/issues/71","labels_url":"https://api.github.com/repos/rcarz/jira-client/issues/71/labels{/name}","comments_url":"https://api.github.com/repos/rcarz/jira-client/issues/71/comments","events_url":"https://api.github.com/repos/rcarz/jira-client/issues/71/events","html_url":"https://github.com/rcarz/jira-client/issues/71","id":60541692,"number":71,"title":"Checking CheckBox on customfield","user":{"login":"andrew-boutin","id":4227775,"avatar_url":"https://avatars.githubusercontent.com/u/4227775?v=3","gravatar_id":"","url":"https://api.github.com/users/andrew-boutin","html_url":"https://github.com/andrew-boutin","followers_url":"https://api.github.com/users/andrew-boutin/followers","following_url":"https://api.github.com/users/andrew-boutin/following{/other_user}","gists_url":"https://api.github.com/users/andrew-boutin/gists{/gist_id}","starred_url":"https://api.github.com/users/andrew-boutin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andrew-boutin/subscriptions","organizations_url":"https://api.github.com/users/andrew-boutin/orgs","repos_url":"https://api.github.com/users/andrew-boutin/repos","events_url":"https://api.github.com/users/andrew-boutin/events{/privacy}","received_events_url":"https://api.github.com/users/andrew-boutin/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/rcarz/jira-client/labels/Enhancement","name":"Enhancement","color":"009800"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":13,"created_at":"2015-03-10T17:58:24Z","updated_at":"2015-07-27T22:34:46Z","closed_at":"2015-03-24T14:06:04Z","body":"Hi, first of all thanks for creating this awesome tool!\r\n\r\nIn Jira I have a custom field that is of type Checkboxes with id = customfield_10023.  The only option is \"Yes\" which has an id of 10013.  I thought that doing what you did in the README.md file, for multi-select boxes, would work, but I can't seem to get it to.  Is it not supported or is there a different way to set check boxes?  Thank you very much.\r\n\r\n    // Tried using the id\r\n    symptom.update().field(\"customfield_10023\", new ArrayList() {{\r\n                       add(Field.valueById(\"10013\"));\r\n                  }})\r\n                  .execute();\r\n\r\n    // Also tried using the value\r\n    symptom.update().field(\"customfield_10023\", new ArrayList() {{\r\n                       add(\"Yes\");\r\n                  }})\r\n                  .execute();\r\n\r\nBoth ways I get the following error:\r\n\r\n    Error during Jira Symptom creation: net.rcarz.jiraclient.JiraException: Failed to update issue TEST-1056\r\n\tnet.rcarz.jiraclient.JiraException: Failed to update issue TEST-1056\r\n\t\tat net.rcarz.jiraclient.Issue$FluentUpdate.execute(Issue.java:191)\r\n\t\tat devopsdatamigrator.JiraHandle.createSymptom(JiraHandle.java:150)\r\n\t\tat devopsdatamigrator.DataMigrator.migrateIssues(DataMigrator.java:208)\r\n\t\tat devopsdatamigrator.DataMigrator.migrateObjects(DataMigrator.java:70)\r\n\t\tat devopsdatamigrator.DataMigrator.main(DataMigrator.java:252)\r\n\tCaused by: net.rcarz.jiraclient.RestException: 400 Bad Request: {\"errorMessages\":[],\"errors\":{\"Customer Data Unavailable Flag\":\"expected Object\"}}\r\n\t\tat net.rcarz.jiraclient.RestClient.request(RestClient.java:160)\r\n\t\tat net.rcarz.jiraclient.RestClient.request(RestClient.java:182)\r\n\t\tat net.rcarz.jiraclient.RestClient.request(RestClient.java:200)\r\n\t\tat net.rcarz.jiraclient.RestClient.put(RestClient.java:380)\r\n\t\tat net.rcarz.jiraclient.RestClient.put(RestClient.java:398)\r\n\t\tat net.rcarz.jiraclient.Issue$FluentUpdate.execute(Issue.java:189)"},"comment":{"url":"https://api.github.com/repos/rcarz/jira-client/issues/comments/125367593","html_url":"https://github.com/rcarz/jira-client/issues/71#issuecomment-125367593","issue_url":"https://api.github.com/repos/rcarz/jira-client/issues/71","id":125367593,"user":{"login":"stevegore","id":13194535,"avatar_url":"https://avatars.githubusercontent.com/u/13194535?v=3","gravatar_id":"","url":"https://api.github.com/users/stevegore","html_url":"https://github.com/stevegore","followers_url":"https://api.github.com/users/stevegore/followers","following_url":"https://api.github.com/users/stevegore/following{/other_user}","gists_url":"https://api.github.com/users/stevegore/gists{/gist_id}","starred_url":"https://api.github.com/users/stevegore/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stevegore/subscriptions","organizations_url":"https://api.github.com/users/stevegore/orgs","repos_url":"https://api.github.com/users/stevegore/repos","events_url":"https://api.github.com/users/stevegore/events{/privacy}","received_events_url":"https://api.github.com/users/stevegore/received_events","type":"User","site_admin":false},"created_at":"2015-07-27T22:34:46Z","updated_at":"2015-07-27T22:34:46Z","body":"Thanks for this. I actually resolved the issue by making a change to the client. I'll try and create a pull request tomorrow.\nOn 24 Jul 2015 12:29 am, Andrew Boutin <notifications@github.com> wrote:I just confirmed that this worked for me.  I created a custom field of type \"Select List (multiple choices)\" called \"multiSelectTest\" with custom field id \"10101\".  The available options were \"one\", \"two\", and \"three\".\r\n\r\nIssue problem = jiraClient.getIssue(\"EM-8648\");\r\n\r\nJSONObject oneObject = new JSONObject(); // from import net.sf.json.JSONObject;\r\noneObject.put(\"value\", \"one\");\r\nJSONObject twoObject = new JSONObject();\r\ntwoObject.put(\"value\", \"two\");\r\n\r\nArrayList<Object> fields = new ArrayList<Object>();\r\nfields.add(oneObject);\r\nfields.add(twoObject);\r\n\r\nproblem.update().field(\"customfield_10101\", fields).execute();\r\n\r\n\r\nThe String representation of 'fields' is \"[{\"value\":\"one\"}, {\"value\":\"two\"}]\".\r\n\r\nHope this helps!\r\n\r\n—Reply to this email directly or view it on GitHub."}}