It's all about the answers!

Ask a question

How to get list of all changeSet in particular Stream using RestApi


gaurao khadse (152) | asked Mar 22, 3:37 a.m.

 Hello All,


We have multiple stream for same application based on EVN.
So i want to verify that the particular change set is present in particular stream using rest api.

One answer



permanent link
Shashikant Padur (4.1k27) | answered Mar 22, 7:34 a.m.
JAZZ DEVELOPER
Your question in the post title and post body is not the same.

To answer the question: So i want to verify that the particular change set is present in particular stream using rest api.

If you have the change set item id and stream id, then you can locate the change set using the following code:
IWorkspaceManager workspaceManager = SCMPlatform.getWorkspaceManager(repo); ILocateChangeSetsSearchCriteria criteria = ILocateChangeSetsSearchCriteria.FACTORY.create(changeSetHandle, streamHandles, Collections.EMPTY_LIST, Collections.EMPTY_LIST);
List<ILocateChangeSetsSearchResult> result = workspaceManager.locateChangeSets(criteria, monitor);

Your answer


Register or to post your answer.