It's all about the answers!

Ask a question

Query baseline/stream/workspace items based on name via HTTP REST API (not Java)


Jordan Elizaga (111) | asked May 14, 7:56 p.m.
edited May 14, 8:05 p.m.

 Is there a way to query SCM/CCM items like baselines, workspaces, projectAreas, etc via the REST API provided here: https://jazz.net/wiki/bin/view/Main/ReportsRESTAPI#Starting_point?


For example, I can make this query using the RTC client desktop, how can I make the same query using the HTTP REST API? 


Also, I can do COPY URL to get a specific work space: (See image: https://imgur.com/ggsquYD)

https://<server>/ccm/resource/itemOid/com.ibm.team.scm.Workspace/_nXWpIDU6EemX9udXATUMDg

But is it possible to query a workspace based on name (not id) to get the UUID?  Is there documentation to where I could find the list of queries I could make?  Here's something very close: https://jazz.net/forum/questions/107699/reportable-rest-api-to-query-components-in-the-scm-of-a-project

But I would like to know if there's an option to query based on ProjectArea name="*" instead of ownerItemId.
https://{almInstance}/ccm/service/com.ibm.team.scm.common.rest.IScmRichClientRestService/SearchComponents2?ownerItemNamespace=com.ibm.team.process&ownerItemType=ProjectArea&ownerItemId=_MqnKD3KjEeKXYuMR5tnn-w

</pre>


Source: https://jazz.net/forum/questions/148941/is-there-a-way-to-query-all-plan-of-a-given-project-area-using-rest-api

Or this (JAVA Api) scm -u y query --stream "in_projectarea('{project_area_name}')" -r https://server/ccm -m all --json

Be the first one to answer this question!


Register or to post your answer.