It's all about the answers!

Ask a question

Export more than 1000 RTC workitems using OSLC API


Pallavi Deore (38150) | asked Oct 10 '23, 9:06 a.m.

 Hello All,


I am trying to export RTC workitems using OSLC api.
Getting error "Error parsing response to JSON: Error: Unclosed root tag".
Workitems are more than 1000 so Is there any way we can export large number of workitems(more than 1000) using OSLC api.
Regards
Pallavi Deore 

One answer



permanent link
Ralph Schoon (63.4k33646) | answered Oct 10 '23, 9:59 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
edited Oct 10 '23, 10:04 a.m.

 I can not see, how the error "Error parsing response to JSON: Error: Unclosed root tag" indicates any relationship to a number of more than 1000 work items. I could see that at some point in the communication buffer size could be an issue. This might cause an issue when trying to serialize/deserialize json for or after transfer. It could be a defect as well. There is pretty much no information what you do, so no way of telling.  

Regardless of what method you use, despite some rumors it would be otherwise, resources on servers are limited and that is why solutions like paging or individually retrieving items exist. I am pretty sure, if you get each work item individually, you could export as many as you like using OSLC.

Note that JSON representation is not totally clear and might not be fully supported. See https://jazz.net/forum/questions/282584/how-to-return-data-in-json-format-in-eclipse-while-using-http-client-query-method . Mediatype application/rdf+xml should be fully supported.



Comments
Ralph Schoon commented Oct 11 '23, 5:58 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER

See https://docs.oasis-open-projects.org/oslc-op/core/v3.0/os/oslc-core.html section 4.1.3 Resource Representations for JSON representation.

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.