It's all about the answers!

Ask a question

Need to fetch more than 1500 test suites from RQM using OSLC query in XML format


0
1
Sanjeet Pattnaik (1514) | asked Jun 18 '20, 10:24 a.m.

 

Issue here is, we are able to fetch only 512 test suites with below query.

https://%s/jazz/oslc_qm/contexts/%s/resources/%s?oslc.select=oslc:shortId

How can we get all the records using Index and pagination like we do it in RTC(in below snippets) ? 

below snippet shows how it works in RTC.

Request:- 
 
+and+dcterms%3Amodified%3C%3D%222020-06-02T06:20:46.340Z%22&oslc.select+=+dcterms%3Aidentifier


Method:- Get
Headers:- 
            authorization: Basic --------------------
            accept: application/rdf+xml
            oslc-core-version: 2.0

Response :- 
    oslc.pageSize=50&_resultToken=_4PCWALFoEeqmqL20-Czr4Q&_startIndex=0">
    _resultToken=_4PCWALFoEeqmqL20-Czr4Q&_startIndex=50"/>
    <dcterms:title>Work Items</dcterms:title>
    <oslc:totalCount>956</oslc:totalCount>
    <rdf:type rdf:resource="http://open-services.net/ns/core#ResponseInfo"/>
  </rdf:Description>

One answer



permanent link
Antonio Napoles (2861) | answered Jun 23 '20, 11:48 a.m.
JAZZ DEVELOPER

Sanjeet,


Please add the following parameters for paging and using a page size (if you want to use other minor than 512):
rqm_qm.pageNum
oslc.pageSize

Additionally you can use query token if you want:
rqm_qm.queryToken


regards,
      napoles

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.