It's all about the answers!

Ask a question

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


gaurao khadse (15114) | asked Mar 22 '21, 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.2k27) | answered Mar 22 '21, 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.


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.