fields.put("issuetype", new JSONObject().put("id", "name"));
fields.put("summary", "Test");
fields.put("project", new JSONObject().put("key", "Demo"));
fields.put("description", "acms test");
JSONObject issue = new JSONObject();
issue.put("fields", fields);
我得到无错误返回400错误的请求的响应状态:REST请求产量错误
{ “错误”:{ “项目”: “项目是必需的”}, “errorMessages” :[]}
以下是获得通过的JSON数据:
{ “田”:{ “总结”: “测试”, “项目”:{ “关键”: “演示” }, “问题类型”:{ “ID”: “名字”},“DESCRIPT离子 “:” ACMS 测试“}}
好像请求体是比REST端点 – Apollo