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

how to find the snapshots containing a input component

for example, I have a component A which is present in stream1 , stream 2 and snapshot1.
I can get to know the streams having component A by OSLC API :findWorkspacesContainingComponent.

Similarly I want to find out which all snaps having component A programatically.

0 votes



One answer

Permanent link
I don't think we have REST/OSLC API for this. We do have server side-API, see:
IScmQueryService.findBaselineSetsUsing(IComponentHandle comp, IRepositoryProgressMonitorHandle progress)  (Note: It's marked as deprecated, but it still currently available for use - otherwise you'd have to write your own queries which would be a little harder to do vs just calling this API).

0 votes

Comments
whats the difference between using server side API and rest oslc API.
I am currently using server side API given by you, but its taking huge amount of time.

To be honest, I'm not sure what you were referring to when you mentioned "OSLC API :findWorkspacesContainingComponent". I did a search for the string 'findWorkspacesContainingComponent' in the code and didn't find any references, so not sure which API you were using for that.
The Java API is the recommended way to write your custom code (extensions/plugins, etc.). So you should be able to find everything you are looking for in 2 of our main API interfaces IScmService and IScmQueryService (and of course the other API is on the interfaces for the various SCM items)

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
× 7,495
× 1,700

Question asked: Aug 27 '19, 7:40 a.m.

Question was seen: 2,092 times

Last updated: Aug 29 '19, 2:14 p.m.

Confirmation Cancel Confirm