0

In postman I can see results are popping correct:

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

but with java code it is returning the result of all the releases. Seems release filter is not working with the Owner name.

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); 
Ahmed Ashour
  • 5,179
  • 10
  • 35
  • 56
  • Try setting workspace: `query.setWorkspace("/workspace/" + workspaceId);`. Also try using `query.setProject("/project/" + projectId);` instead of setting the project as a query filter. I haven't tried these, but it's worth a try. – jacobcs Aug 13 '20 at 03:40
  • Thanks jacobcs. Yes i had changed it later, and achieved my goal. – Saurabh Gupta Aug 13 '20 at 10:53

0 Answers0