我无法创建缺陷并与用户故事相关联。我正在使用下面的集会休息 api java 代码。
JsonObject newDefect = new JsonObject();
newDefect.addProperty("Name", "defect added to check");
newDefect.addProperty("Description", "description added to check");
newDefect.addProperty("Requirement", "/userstory/11018012245");
newDefect.addProperty("SubmittedBy", "user/10832575945");
newDefect.addProperty("Workspace", "/workspace/10832575967");
newDefect.addProperty("Project", "project/10832575978");
CreateRequest createRequest = new CreateRequest("defect", newDefect);
CreateResponse createResponse = restApi.create(createRequest);createResponse.getObject().get("FormattedID").toString();