Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

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

 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

0 votes


Be the first one to answer this question!

Register or log in 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.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 11,047
× 485
× 62

Question asked: May 14 '19, 7:56 p.m.

Question was seen: 3,182 times

Last updated: May 14 '19, 8:05 p.m.

Confirmation Cancel Confirm