{"action":"created","issue":{"url":"https://api.github.com/repos/taskadapter/redmine-java-api/issues/168","labels_url":"https://api.github.com/repos/taskadapter/redmine-java-api/issues/168/labels{/name}","comments_url":"https://api.github.com/repos/taskadapter/redmine-java-api/issues/168/comments","events_url":"https://api.github.com/repos/taskadapter/redmine-java-api/issues/168/events","html_url":"https://github.com/taskadapter/redmine-java-api/pull/168","id":54630115,"number":168,"title":"Workaround: redmine 2.6 return invalid structure for empty custom field","user":{"login":"matthiasblaesing","id":2179736,"avatar_url":"https://avatars.githubusercontent.com/u/2179736?v=3","gravatar_id":"","url":"https://api.github.com/users/matthiasblaesing","html_url":"https://github.com/matthiasblaesing","followers_url":"https://api.github.com/users/matthiasblaesing/followers","following_url":"https://api.github.com/users/matthiasblaesing/following{/other_user}","gists_url":"https://api.github.com/users/matthiasblaesing/gists{/gist_id}","starred_url":"https://api.github.com/users/matthiasblaesing/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matthiasblaesing/subscriptions","organizations_url":"https://api.github.com/users/matthiasblaesing/orgs","repos_url":"https://api.github.com/users/matthiasblaesing/repos","events_url":"https://api.github.com/users/matthiasblaesing/events{/privacy}","received_events_url":"https://api.github.com/users/matthiasblaesing/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/taskadapter/redmine-java-api/milestones/20","labels_url":"https://api.github.com/repos/taskadapter/redmine-java-api/milestones/20/labels","id":915629,"number":20,"title":"2.1.0","description":null,"creator":{"login":"alexeyOnGitHub","id":239741,"avatar_url":"https://avatars.githubusercontent.com/u/239741?v=3","gravatar_id":"","url":"https://api.github.com/users/alexeyOnGitHub","html_url":"https://github.com/alexeyOnGitHub","followers_url":"https://api.github.com/users/alexeyOnGitHub/followers","following_url":"https://api.github.com/users/alexeyOnGitHub/following{/other_user}","gists_url":"https://api.github.com/users/alexeyOnGitHub/gists{/gist_id}","starred_url":"https://api.github.com/users/alexeyOnGitHub/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexeyOnGitHub/subscriptions","organizations_url":"https://api.github.com/users/alexeyOnGitHub/orgs","repos_url":"https://api.github.com/users/alexeyOnGitHub/repos","events_url":"https://api.github.com/users/alexeyOnGitHub/events{/privacy}","received_events_url":"https://api.github.com/users/alexeyOnGitHub/received_events","type":"User","site_admin":false},"open_issues":3,"closed_issues":6,"state":"open","created_at":"2014-12-27T10:21:20Z","updated_at":"2015-01-20T05:31:29Z","due_on":null,"closed_at":null},"comments":5,"created_at":"2015-01-16T21:58:24Z","updated_at":"2015-01-20T05:31:29Z","closed_at":"2015-01-20T05:31:29Z","pull_request":{"url":"https://api.github.com/repos/taskadapter/redmine-java-api/pulls/168","html_url":"https://github.com/taskadapter/redmine-java-api/pull/168","diff_url":"https://github.com/taskadapter/redmine-java-api/pull/168.diff","patch_url":"https://github.com/taskadapter/redmine-java-api/pull/168.patch"},"body":"Known issue: Under the condition:\r\n\r\n    issue is newly created\r\n    custom_field is multi-field\r\n    custom_field is set to an empty list or null\r\n\r\nThen:\r\n\r\n    the return structure has \"multiple\" set\r\n    but the value is the empty string\r\n\r\nI modified the unittest, to test handling of multi-value custom fields. To do this I modified the test, to check a third custom value (so the redmine instance, this is tested against needs to be modified).\r\n\r\nSee comment in testCustomFields for the new field.\r\n\r\nThe unittest not only covers the new work around, but also introduces tests that were requested for pull request #54.\r\n\r\nUnittests all run through (after adding the third custom field of course)"},"comment":{"url":"https://api.github.com/repos/taskadapter/redmine-java-api/issues/comments/70606692","html_url":"https://github.com/taskadapter/redmine-java-api/pull/168#issuecomment-70606692","issue_url":"https://api.github.com/repos/taskadapter/redmine-java-api/issues/168","id":70606692,"user":{"login":"alexeyOnGitHub","id":239741,"avatar_url":"https://avatars.githubusercontent.com/u/239741?v=3","gravatar_id":"","url":"https://api.github.com/users/alexeyOnGitHub","html_url":"https://github.com/alexeyOnGitHub","followers_url":"https://api.github.com/users/alexeyOnGitHub/followers","following_url":"https://api.github.com/users/alexeyOnGitHub/following{/other_user}","gists_url":"https://api.github.com/users/alexeyOnGitHub/gists{/gist_id}","starred_url":"https://api.github.com/users/alexeyOnGitHub/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexeyOnGitHub/subscriptions","organizations_url":"https://api.github.com/users/alexeyOnGitHub/orgs","repos_url":"https://api.github.com/users/alexeyOnGitHub/repos","events_url":"https://api.github.com/users/alexeyOnGitHub/events{/privacy}","received_events_url":"https://api.github.com/users/alexeyOnGitHub/received_events","type":"User","site_admin":false},"created_at":"2015-01-20T05:31:29Z","updated_at":"2015-01-20T05:31:29Z","body":"I fixed tests and merged in another pull request: https://github.com/taskadapter/redmine-java-api/pull/170\r\n\r\n@matthiasblaesing , thank you for good work again."}}