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

Get Changesets specific to Snapshot in RTC-SCM Programmatically

Hello Team,
My Usecase is below:
i would like to get all Changesets of Snapshot. For this i am doing below search criteria.
Stream + Component + Specific Baseline of Component

Below is line of code i am using,
ChangeSetSearchCriteria changeSetSearchCriteria = IChangeSetSearchCriteria.FACTORY.newInstance();
          changeSetSearchCriteria.setComponent(compHandle);
          changeSetSearchCriteria.setContext(workspHandle);
          changeSetSearchCriteria.setContext(bl.get(inCnt));  bl.get(inCnt) returns IBaseline
          List<IChangeSetHandle> changeSetHandles =
              workspaceMgr.findChangeSets(changeSetSearchCriteria, IWorkspaceManager.MAX_QUERY_SIZE, null);
          System.out.println(changeSetHandles.size());

But above Returns all the changesets of Components which is not i intended.
I expect for specific baseline which is not working.
Could you please let me know what is going wrong here.

Thanks in Advance.

1 vote


Accepted answer

Permanent link

Hi,

I never tried the #findChangeSets approach but found this one was working for me, including getting all change sets through paging: https://jazz.net/forum/questions/239965/how-to-get-the-changesets-linked-to-a-particular-snapshot

Look for the accepted answer, it has the code.
If this solves your problem please mark it as accepted.

- Arne

David Lafreniere selected this answer as the correct answer

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 11 '17, 10:37 a.m.

Question was seen: 971 times

Last updated: Oct 12 '17, 9:56 a.m.

Confirmation Cancel Confirm