Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

CM REST API Simpe Query results limitted to 50

I'm trying to use the CM REST API to return a collection of work items using the Simple Query resource. This is on a RTC 3.0.1.1 system. We have created a new work item type called PatchRequest with it's own category. We are also using the defect work item. When I run a simple query using the API on defects the results returned are what is expected. The oslc_cm.totalCount=1000 (which is the limit set on the CM application's advanced properties) and a total of 1000 items are returned in the resulting xml output. When I run a simple query using the API on PatchRequests only 50 items are returned out of a possible 1000. The oslc_cm.pageSize parm is being arbitrarily added to the collection request. this parm forces the limit of 50. This only happens when running the query on the PatchRequest work items, not on the defect work items. I have even tried adding my on oslc_cm.pageSize URL parm, but that is being ignored and replaced with a value of 50. I get this result from both the PERL program I use with CURL and also when I enter the simpleQuery url with the oslc_cm.query and oslc_cm.properties url parms.

Anyone have an idea of how I can lift the limitl of 50?

1 vote



2 answers

Permanent link
Tom,

  Specifying a oslc_cm.pageSize should allow for a larger page size, but I only found that I could get it up to 100 before it kicked me back down to 50 which I assume is the default and 100 is the max ? Couldn't seem to find where this was set.

 http://open-services.net/bin/view/Main/CmRestApiV1?sortcol=table;up=#Pagination 

  -Sean

0 votes


Permanent link
Related questions & answers could be found here:
https://jazz.net/forum/questions/140852/paged-oslc-query-result-limited-to-100/

-Stephane

0 votes

Your answer

Register or log in 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.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details

Question asked: Dec 12 '11, 7:15 a.m.

Question was seen: 8,435 times

Last updated: Feb 05 '14, 8:55 a.m.

Confirmation Cancel Confirm