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

Reportable Rest API to query files in a SCM component

You can use the following API to query components in the SCM of a project.  

https://almInstance/ccm/service/com.ibm.team.scm.common.rest.IScmRichClientRestService/SearchComponents2?ownerItemNamespace=com.ibm.team.process&ownerItemType=ProjectArea&ownerItemId=(itemId)  

Similarly is there any API to query files from an individual component

0 votes



2 answers

Permanent link
In general, you need a context in order to access the files of the component. A context could be a workspace, stream, snapshot or baseline. Also, the main method of accessing these files is either by traversing the file tree or accessing the files by path. Is either of these the type of query you are asking about? If not, perhaps you can provide more details on the type of information you want to query.

0 votes

Comments

In this case work space is our context. The work space used for a project build. 


Basically we want to retrieve each component and the files under each of these components.  

The end objective is to identify things like
  •  Which part of the module is committed more often (Probably this part is more buggy)
  • What are the open source libraries used in a module
  •  Who are the frequent committers in the module.


Permanent link
Praveen,

At the current time, we are not in a good position to point you at documentation describing the API that supports those types of operations. However, we have a plan item for defining and support an RTC SDK ([CCM] Design SDK API (272836)). What I would suggest you do is either comment on that work item describing the API you require or open a new RFE describing what you need and link it to the work item I mentioned. The advantage of doing this is that we can then work on outlining how you might be able to do what you need today (which may require the use of non-API) while, at the same time, create a record that can be used to ensure the required API is included in the SDK.

Michael

0 votes

Your answer

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
× 10,938

Question asked: Oct 18 '13, 11:04 a.m.

Question was seen: 5,434 times

Last updated: Oct 22 '13, 10:38 a.m.

Confirmation Cancel Confirm