It's all about the answers!

Ask a question

Reportable Rest API to query components in the SCM of a project


0
1
Praveen Kumar (371822) | asked Mar 28 '13, 8:10 a.m.
retagged Dec 03 '13, 11:12 a.m. by David Lafreniere (4.8k7)
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

Comments
Geoffrey Clemm commented Mar 28 '13, 11:13 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER

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?


Praveen Kumar commented Apr 01 '13, 2:31 a.m.

I meant to select just those components that are owned by a particular project area.  

Accepted answer


permanent link
Priyadarshini Gorur (3313) | 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
Praveen Kumar commented Oct 18 '13, 8:10 a.m.

Is this a Public API or an internal one.  Does it keep changing every release.  


Praveen Kumar commented Oct 18 '13, 8:20 a.m.

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/
 



Praveen Kumar commented Oct 18 '13, 10:45 a.m.
Thanks for a quick response.   After changing as you suggeste,d it gives me a 500 error The URL I tried is given below.  


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.