{"action":"created","issue":{"url":"https://api.github.com/repos/codepine/testrail-api-java-client/issues/30","repository_url":"https://api.github.com/repos/codepine/testrail-api-java-client","labels_url":"https://api.github.com/repos/codepine/testrail-api-java-client/issues/30/labels{/name}","comments_url":"https://api.github.com/repos/codepine/testrail-api-java-client/issues/30/comments","events_url":"https://api.github.com/repos/codepine/testrail-api-java-client/issues/30/events","html_url":"https://github.com/codepine/testrail-api-java-client/issues/30","id":293905972,"node_id":"MDU6SXNzdWUyOTM5MDU5NzI=","number":30,"title":"How to use customfields","user":{"login":"dengrgry","id":5707236,"node_id":"MDQ6VXNlcjU3MDcyMzY=","avatar_url":"https://avatars2.githubusercontent.com/u/5707236?v=4","gravatar_id":"","url":"https://api.github.com/users/dengrgry","html_url":"https://github.com/dengrgry","followers_url":"https://api.github.com/users/dengrgry/followers","following_url":"https://api.github.com/users/dengrgry/following{/other_user}","gists_url":"https://api.github.com/users/dengrgry/gists{/gist_id}","starred_url":"https://api.github.com/users/dengrgry/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dengrgry/subscriptions","organizations_url":"https://api.github.com/users/dengrgry/orgs","repos_url":"https://api.github.com/users/dengrgry/repos","events_url":"https://api.github.com/users/dengrgry/events{/privacy}","received_events_url":"https://api.github.com/users/dengrgry/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-02-02T14:29:11Z","updated_at":"2018-08-17T19:31:07Z","closed_at":null,"author_association":"NONE","body":"I'm having issues with required custom fields. Can someone point me out how to properly use them?\r\n\r\nI add a custom field map to my test case result:\r\n`result.setCustomFields(customParameters)`\r\n\r\nWhen i check the value of the custom field in my result, it's correct.\r\nAfter the test run I report my results with this code:\r\n```\r\nList<ResultField> customResultFields = testRailClient.resultFields().list().execute()\r\ntestRailClient.results().addForCases(run.getId(), testResults, customResultFields).execute()\r\n```\r\nBut i'm still getting an error that custom field X is required. Without the required custom field everything is working."},"comment":{"url":"https://api.github.com/repos/codepine/testrail-api-java-client/issues/comments/413966956","html_url":"https://github.com/codepine/testrail-api-java-client/issues/30#issuecomment-413966956","issue_url":"https://api.github.com/repos/codepine/testrail-api-java-client/issues/30","id":413966956,"node_id":"MDEyOklzc3VlQ29tbWVudDQxMzk2Njk1Ng==","user":{"login":"davidbrazilparker","id":11250873,"node_id":"MDQ6VXNlcjExMjUwODcz","avatar_url":"https://avatars2.githubusercontent.com/u/11250873?v=4","gravatar_id":"","url":"https://api.github.com/users/davidbrazilparker","html_url":"https://github.com/davidbrazilparker","followers_url":"https://api.github.com/users/davidbrazilparker/followers","following_url":"https://api.github.com/users/davidbrazilparker/following{/other_user}","gists_url":"https://api.github.com/users/davidbrazilparker/gists{/gist_id}","starred_url":"https://api.github.com/users/davidbrazilparker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davidbrazilparker/subscriptions","organizations_url":"https://api.github.com/users/davidbrazilparker/orgs","repos_url":"https://api.github.com/users/davidbrazilparker/repos","events_url":"https://api.github.com/users/davidbrazilparker/events{/privacy}","received_events_url":"https://api.github.com/users/davidbrazilparker/received_events","type":"User","site_admin":false},"created_at":"2018-08-17T19:31:07Z","updated_at":"2018-08-17T19:31:07Z","author_association":"NONE","body":"Example of setting custom case fields and updating a `case`.\r\n\r\n```\r\nList<CaseField> caseFields = testRailInstance.caseFields().list().execute();\r\nCase caseObject = testRailInstance.cases().get(someCaseID, caseFields).execute();\r\n\r\nMap<String,Object> customFields = new HashMap<>();\r\ncustomFields.put(\"fieldKey\",\"fieldValue\");\r\n\r\ntestRailInstance.cases().update(caseObject,caseFields).execute();\r\n```"}}
{"actor":{"display_login":"davidbrazilparker"}}