此查询正在从特定项目中获取缺陷:
QueryRequest defectRequest = new QueryRequest("defect");
defectRequest.setFetch(new Fetch("Project", "LastUpdateDate", "FormattedId", "SubmittedBy", "Owner"));
defectRequest.setQueryFilter(new QueryFilter("Project.Name", "=", rallyProjectName));
QueryResponse projectDefects = rallyApi.query(defectRequest);
但是,从父项目的所有子项目中获取缺陷是行不通的。