0

在邮递员中,我可以看到结果是正确的:

https://rally1.rallydev.com/slm/webservice/v2.0/task?query=(((Owner.Name = abc@google.com) and (Release.Name = PQA)) and (Project = "/project/"))&fetch=FormattedID, Actuals, Estimate, owner

但是使用 java 代码,它会返回所有版本的结果。似乎发布过滤器不适用于所有者名称。

rallyRestApi = new RallyRestApi(URI.create(host), apiKey, apiKey);
QueryRequest query = new QueryRequest("task");
query.setQueryFilter(new QueryFilter("Release.Name", "=", "XYZ"));
query.setQueryFilter(new QueryFilter("Project", "=", "PQR"));
query.setQueryFilter(new QueryFilter("Owner.Name", "=", "abc@google.com"));
query.setFetch(new Fetch("FormattedID", "Name", "Actuals", "Owner", "Estimates"));
query.setLimit(Integer.MAX_VALUE);
query.setScopedDown(true);
QueryResponse response = rallyRestApi.query(query); 
4

0 回答 0