It's all about the answers!

Ask a question

512 limit on RRC Query


Randy Adkins (1111) | asked Apr 15 '11, 7:20 p.m.
I am currently using the RRC java api to return a query of all of the requirements in RRC. I am using the QueryServiceClient which is only returning 512 requirements even though I set the pagsize to 9999 and there are more requirements in the repository. Is there another call that returns all of the requirements without the limit?

Here is the callQueryResults queryResults = QueryServiceClient.query(formatCondition.toString(), null, null, 9999, getRequirementsRepository(), restMethodObject);

4 answers



permanent link
Tom Mutdosch (1761) | answered Apr 19 '11, 10:10 a.m.
JAZZ DEVELOPER
I am currently using the RRC java api to return a query of all of the requirements in RRC. I am using the QueryServiceClient which is only returning 512 requirements even though I set the pagsize to 9999 and there are more requirements in the repository. Is there another call that returns all of the requirements without the limit?

Here is the callQueryResults queryResults = QueryServiceClient.query(formatCondition.toString(), null, null, 9999, getRequirementsRepository(), restMethodObject);


512 is the maximum page size that can be returned by Jazz. There should be paging URIs to get to the next page of results.
If all results are not being returned, try appending " /limit=-1" to your query string (formatCondition in this example). By default Jazz limits number of results to prevent runaway queries. Specifying a limit of -1 signifies that the query should be unbounded.

-Tom

permanent link
Randy Adkins (1111) | answered Apr 19 '11, 1:33 p.m.
Thanks for the response. I am now having trouble finding how to get to the next page.

What is the call to get the next page of results so far I have queryResults.getNextPageUrl()

Is there an Object that can get the results for the next page and put it into the queryresults?


I am currently using the RRC java api to return a query of all of the requirements in RRC. I am using the QueryServiceClient which is only returning 512 requirements even though I set the pagsize to 9999 and there are more requirements in the repository. Is there another call that returns all of the requirements without the limit?

Here is the callQueryResults queryResults = QueryServiceClient.query(formatCondition.toString(), null, null, 9999, getRequirementsRepository(), restMethodObject);


512 is the maximum page size that can be returned by Jazz. There should be paging URIs to get to the next page of results.
If all results are not being returned, try appending " /limit=-1" to your query string (formatCondition in this example). By default Jazz limits number of results to prevent runaway queries. Specifying a limit of -1 signifies that the query should be unbounded.

-Tom

permanent link
Tom Mutdosch (1761) | answered Apr 19 '11, 1:41 p.m.
JAZZ DEVELOPER
Going off memory here, but I believe there's a QueryServiceClient.getQueryPage() call that just takes in the URI.

Essentially you are just doing a GET on the 'next' URI (make sure it is fully resolved though; it comes back relative). So you could just make a standard GET on that URI.

-Tom

permanent link
Randy Adkins (1111) | answered Apr 19 '11, 8:48 p.m.
Going off memory here, but I believe there's a QueryServiceClient.getQueryPage() call that just takes in the URI.

Essentially you are just doing a GET on the 'next' URI (make sure it is fully resolved though; it comes back relative). So you could just make a standard GET on that URI.

-Tom


Thanks that worked!

Randy

Your answer


Register or to post your answer.


Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.