我试图获取当前 sprint 的迭代名称,所以我这样查询,但没有得到任何结果。
String projectRef = "/project/6376838384";
QueryRequest iterationRequest = new QueryRequest("Iteration");
iterationRequest.setFetch(new Fetch("Name","StartDate","EndDate"));
iterationRequest.setScopedDown(false);
iterationRequest.setScopedUp(false);
iterationRequest.setProject(projectRef);
Date date = new Date();
iterationRequest.setQueryFilter(new QueryFilter("Iteration.StartDate", "<=",date.toString()).and(new QueryFilter("Iteration.EndDate", ">=", date.toString())));
QueryResponse iterationQueryResponse = restApi.query(iterationRequest);
int numberOfIteraitons = iterationQueryResponse.getTotalResultCount();
System.out.println("numberOfIteraitons " + numberOfIteraitons);
请告诉我,哪里出错了..