I am having problems with /service/com.ibm.team.scm.common.rest.IScmRichClientRestService/searchComponents2?ownerItemNamespace=com.ibm.team.process&ownerItemType=ProjectArea&ownerItemId=
I am trying to query all project area's and then all components within each project area...
I call /service/com.ibm.team.process.internal.service.web.IProcessWebUIService/allProjectAreas
to get the projects, and then take one as an example....
<values xsi:type="rest:ProjectAreaDTO">
<itemId>_82pNEBqIEeGz8oVjIaEBAw</itemId>
<stateId>_z1Tc8MtHEeWeV54VgA7baw</stateId>
<name>SCMon Project</name>
<archived>false</archived>
<initialized>true</initialized>
<accessTime>2016-02-29T00:34:24.484Z</accessTime>
<description>
Source Code Access Analysis (SCAA) is now labeled SCMon for Source Code Monitoring.
</description>
<summary>Source Code Monitoring project</summary>
<locale>en_US</locale>
<publicVisible>false</publicVisible>
<memberVisible>true</memberVisible>
<specificUserVisible>false</specificUserVisible>
<internalIsProcessProvider>false</internalIsProcessProvider>
<webUrl>
https://swgjazz.ibm.com:8027/jazz/web/projects/SCMon%20Project
</webUrl>
</values>
Then if I understand correctly I would call this to get the components....
https://swgjazz.ibm.com:8027/jazz/service/com.ibm.team.scm.common.rest.IScmRichClientRestService/searchComponents2?ownerItemNamespace=com.ibm.team.process&ownerItemType=ProjectArea&ownerItemId=_82pNEBqIEeGz8oVjIaEBAw
But when I do that I get this response which appears to be the response I expect when I query a project without any components... but when I view the project area in Eclipse client, under the project, under source control, there are half a dozen components listed. (I can provide a screenshot).
<itemId>_82pNEBqIEeGz8oVjIaEBAw</itemId>
<stateId>_z1Tc8MtHEeWeV54VgA7baw</stateId>
<name>SCMon Project</name>
<archived>false</archived>
<initialized>true</initialized>
<accessTime>2016-02-29T00:34:24.484Z</accessTime>
<description>
Source Code Access Analysis (SCAA) is now labeled SCMon for Source Code Monitoring.
</description>
<summary>Source Code Monitoring project</summary>
<locale>en_US</locale>
<publicVisible>false</publicVisible>
<memberVisible>true</memberVisible>
<specificUserVisible>false</specificUserVisible>
<internalIsProcessProvider>false</internalIsProcessProvider>
<webUrl>
https://swgjazz.ibm.com:8027/jazz/web/projects/SCMon%20Project
</webUrl>
</values>
Then if I understand correctly I would call this to get the components....
https://swgjazz.ibm.com:8027/jazz/service/com.ibm.team.scm.common.rest.IScmRichClientRestService/searchComponents2?ownerItemNamespace=com.ibm.team.process&ownerItemType=ProjectArea&ownerItemId=_82pNEBqIEeGz8oVjIaEBAw
But when I do that I get this response which appears to be the response I expect when I query a project without any components... but when I view the project area in Eclipse client, under the project, under source control, there are half a dozen components listed. (I can provide a screenshot).
Any ideas?
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:scm.rich.rest="com.ibm.team.scm.rich.rest.dto" xmlns:com.ibm.team.repository.common.services="http:///com/ibm/team/core/services.ecore" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<soapenv:Body>
<response>
<method>getSearchComponents2</method>
<interface>
com.ibm.team.scm.common.rest.IScmRichClientRestService
</interface>
<returnValue xsi:type="com.ibm.team.repository.common.services:ComplexDataArg">
<type>COMPLEX</type>
<value xsi:type="scm.rich.rest:ScmComponent2List"></value>
</returnValue>
</response>
</soapenv:Body>
</soapenv:Envelope>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:scm.rich.rest="com.ibm.team.scm.rich.rest.dto" xmlns:com.ibm.team.repository.common.services="http:///com/ibm/team/core/services.ecore" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<soapenv:Body>
<response>
<method>getSearchComponents2</method>
<interface>
com.ibm.team.scm.common.rest.IScmRichClientRestService
</interface>
<returnValue xsi:type="com.ibm.team.repository.common.services:ComplexDataArg">
<type>COMPLEX</type>
<value xsi:type="scm.rich.rest:ScmComponent2List"></value>
</returnValue>
</response>
</soapenv:Body>
</soapenv:Envelope>
One answer
You're using internal APIs, which is not supported for further development.
For what you have observed, I guess maybe you only see the project-scoped components with the query that you constructed?
For what you have observed, I guess maybe you only see the project-scoped components with the query that you constructed?