Reportable Rest API to query components in the SCM of a project
![]()
Praveen Kumar (37●17●22)
| asked Mar 28 '13, 8:10 a.m.
retagged Dec 03 '13, 11:12 a.m. by David Lafreniere (4.8k●7)
I am able to query all components existing in the SCM using the below query
https://sever/ccm/rpt/repository/scm?fields=scm/component/(name) But how do I filter this for a single project |
Accepted answer
![]()
Priyadarshini Gorur (331●3)
| answered Oct 18 '13, 7:17 a.m.
JAZZ DEVELOPER edited Oct 18 '13, 7:18 a.m.
You can use this Rest API instead:
https://server/jazz/service/com.ibm.team.scm.common.rest.IScmRichClientRestService/SearchComponents2?ownerItemNamespace=com.ibm.team.process&ownerItemType=ProjectArea&ownerItemId=(itemid) Praveen Kumar selected this answer as the correct answer
Comments Is this a Public API or an internal one. Does it keep changing every release. Also it seems this service is not available. It gives me a 404 error. See details below
Error 404: com.ibm.ws.webcontainer.servlet.exception.NoTargetForURIException: No target servlet configured for uri: /jazz/service/
Thanks for a quick response. After changing as you suggeste,d it gives me a 500 error The URL I tried is given below.
Sorry. It was a typo error while specfying the item Id. This works fine!!! |
Comments
By "filter for a single project", do you mean select just those components that are owned by a particular project area? Or do you mean for those components that are currently in a particular stream?
I meant to select just those components that are owned by a particular project area.