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

How to retrieve the snapshot names available under stream using java API ???




0 votes

Comments

 Which version are you using?

I am using RTC eclipse client 3.8 version


Accepted answer

Permanent link
Get the baseline sets from the IWorkspaceConnection. Then resolve the IBaselineSetHandles and you can get the names.
vinitha dsouza selected this answer as the correct answer

0 votes

Comments

Can you provide me the code snippet for the same??

List<IBaselineSetHandle> snapshots = IWorkspaceConnection#getBaselineSets(monitor);
ITeamRepository repo = IWorkspaceConnection#teamRepository();
List<IBaselineSet> fetchedSnapshots = repo.itemManager().fetchCompleteItems(snapshots, IItemManager.DEFAULT, monitor);
for (IBaselineSet snapshot : fetchedSnapshots) {
snapshot.getName();
}

Hello Tim
Thank You for the Post.
The above code list the snapshot names for a entire project area...I just wanted to know one more thing that ,how will I get the snapshot name for a selected stream??


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

Question asked: Jul 23 '14, 9:38 a.m.

Question was seen: 3,099 times

Last updated: Aug 22 '14, 7:57 a.m.

Confirmation Cancel Confirm