It's all about the answers!

Ask a question

How to solve the limit of 1000 work item records obtained through OSLC?

DAVID GUO (35413) | asked Apr 12 '20, 7:49 a.m.

There are about 6,000 task work item records in the RTC project area. When accessing the following URL through OSLC to obtain the xml record, it is found that only a maximum of 1000 records can be returned. How can I solve this problem?

It can be clearly seen from the header of the returned xml file that there is a totalCount which limits the return of up to 1000 records. Even using context to recursively access can only get 1000 records.

Accepted answer

permanent link
Don Yang (7.7k21114139) | answered Apr 13 '20, 12:01 a.m.
Hi, David

Please go to https://yourserver:port/ccm/
and increase the property value: >> Maximum Query Result Set Size
and workaround the issue.

Hopefully this helps.
DAVID GUO selected this answer as the correct answer

2 other answers

permanent link
angeline christensen (11) | answered Apr 13 '20, 12:43 a.m.

Maximum Query Result Set Size and workaround the issue.

permanent link
Dinesh Kumar B (4.1k413) | answered Apr 13 '20, 4:59 a.m.
If you wish to do the same via API, refer to Ralph's below blog post :

The limit also applies to the API, however, in the API it is possible to get around it to get the full result set. To do that, you have to change the limit of the result set. It is necessary to do that before you do anything else with the result set. The limit can not be changed after you accessed the results.

The code to change the limit for unresolved results looks like below:

((QueryResultIterator) unresolvedResults).setLimit(Integer.MAX_VALUE);

The code to change the limit for a resolved result set is simpler.


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.