How to retrieve all the defects using OSLC REST API?
I got a requirement to retrieve all the defects irrespective of project areas they are in.
I am trying to access the following URL through browser.
https://localhost:port/ccm/rpt/repository/workitem?fields=workitem/workItem[...]/displayFields&size=500
I am getting 500 error.
Can you please help me with it?
3 answers
Hi Amarnathreddy,
I think we can't get work items irrespective of project areas
but,
we can get all project areas from server
and,
we can create a loop for each project area defect items using RTC Plain Java Libs.
Browsers does not always show the correct query result but API shows. If you want to develop an API for it I can help you.
Comments
The three dots in the square brackets [...] looks quite bizarre. Does the URL that you used really look like this? If true, the syntax is simply wrong, hence the 500 error. I don't know how many attributes you want to retrieve from the work items, but you can start with "?fields=workitem/workItem/id".
Note that retrieving huge volume of data out of the server can put pressure on the server, and even bring it down. Proceed with caution.
Note that retrieving huge volume of data out of the server can put pressure on the server, and even bring it down. Proceed with caution.
Thanks for helping me through thinking process. I was looking at the link page before. But it started making sense to me while I was going through your answers and google search.
I came up with the following URL. Assuming it helps people in future who refers this post. It is working fine for me.
I couldn't apply filter on custom attribute (subtype) which is part of allExtentions. But there are multiple allExtentions.
Subtype location is "allExtentions/displayName" and it's value location is "allExtentions/displayValue"
Let me know if it s possible.