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

How to fetch current version number of a file from changeset using JAVA apis?

I am able to fetch changeset associated with the workitems and the file associated with the changeset. How do I get the details of current version number of the file ?

0 votes


Accepted answer

Permanent link

The client-side code for fetching an IVersionableIdentifier is:
IWorkspaceManager wm = SCMPlatform.getWorkspaceManager(repository);
IVersionableIdentifier identifier = wm.getVersionableIdentifiers(new IVersionableHandle[] { versionableHandle }, monitor)[0];

Akshay Daga selected this answer as the correct answer

0 votes

Comments

Thank you, it works :-)

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: Apr 22 '19, 5:54 a.m.

Question was seen: 1,256 times

Last updated: Apr 25 '19, 5:25 a.m.

Confirmation Cancel Confirm