How to get all information rather than parts returned from RTC using Rest API?
2 answers
Normaly you control this with the size parameter in the URL:
e.g.
&size=2000
Comments
Hi,Guido,
Can you elaborate on what was wrong when you used the "nextpage" url?
Hi,Brian, thanks for your attention. <o:p> </o:p>
I want to get all work items belong to a Planned For. So My query URL is https://igartc03.swg.usma.ibm.com/jazz/oslc/contexts/_83qvgGzSEd-Xqre3_CpPFQ/workitems?oslc.where=rtc_cm:plannedFor=https://igartc03.swg.usma.ibm.com/jazz/oslc/iterations/_bDaAEAmeEeKapp8glHcCLw>.
When I send request to this URL using the rest add-on in mozilla, the returned result is.
Then I send request to the “nextpage” URL, the result is: <o:p> </o:p>
I have no ideas about why this happened, can you give me some guidance? <o:p> </o:p>
Thanks in advance! <o:p> </o:p>
<o:p>
</o:p>
Comments
+1
I've reproduced this behavior (I'm using REST client on Firefox and a Jazz 4.0.3 server).
To be more precise, I've fixed the problem by replacing the "&" string with '&' character.
You'd certainly want to open a defect on this.
Regards,
Stéphane
https://jazz.net/wiki/bin/view/Main/RqmApi actually documents this...
"Note: The links to other pages in a feed cannot be pasted directly into a browser to get that page. This is because the link contains a query segment that looks something like this:
?token=_C8DasVZWEeG429XX9GztHA%26page=1
where the &'s are escaped (e.g. %26). To use the link the &'s must be unescaped by turning all instances of "%26" to "&". That would make the query segment look something like:
?token=_C8DasVZWEeG429XX9GztHA&page=1
"
I suspect this is "working as designed" in the RTC API as well.