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

Get history of IFileItem

I already found out how to get IFileItem objects for all of my source files. Now I am interested in history/changeset elements (like "lscm history" does on the command line).

How do I access corresponding change set information from an IFileItem?

0 votes

Comments

Alternatively, where can I find the API description of the RTC 2 SDK?

I downloaded the SDK but there is no documentation and no java doc embedded?

Hello. How can I get IFileItem objects for all of my source files from a repository? I'm looking for the solution into the api but I can't find out how to do that using the Java Plain Client Libraries. Thanks



One answer

Permanent link
There is some JavaDoc for the Plain Java Client Libraries in the latest releases. The SDK has comments and source code. Follow https://jazz.net/library/article/784 and the Extensions workshop to set up your development environment and then you can look into the code. That is what I think is available.

0 votes

Comments

Thanks - I downloaded a newer SDK version and was finally able to extract the JavaDoc myself.

Now I found a way to access the history (and change sets) of a file item.

Next step is to access a work item associated to any of these change sets. But after some hours of googling and scrolling through the JavaDocs I could not find a way to receive them.

What is the correct way to access the workitem object connected to a changeset?

Hi Florian,

Can you please help me to undersand how to get file history (in changesets) out of IFileItem ? (I'm working in server side)

waiting for your answer,

Yehiel

Hi,

I don't have the complete solution at hand, but these were basically the steps:
- Use a BaselineConnection to get a) the changeHistory and b) the RootFolderHandle (via BaselineConnection.configuration, I think...)
- Use the RootFolderHandle (b) to extract the IVersionableHandle (c) for each file
- Use the changeHistory (a) with a versionableHandle (c) to receive change sets

From here I used the LinkManager to get links of type "com.ibm.team.filesystem.workitems.change_set" - these can be used to get the workitem(s) connected to change sets.

And yes, I learned to hate the API and am happy to not have to use RTC and Jazz anymore...

Hi  Florian,

Many thanks for your replay! You give me a hope..
CAn you provide a more detailed code? I don't understand this: "Use the changeHistory (a) with a versionableHandle (c) to receive change sets" - i didn't find any option like that.
Thanks again for your help.

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,937
× 1,202
× 169
× 67

Question asked: May 29 '12, 10:17 a.m.

Question was seen: 9,107 times

Last updated: Dec 16 '13, 5:27 p.m.

Confirmation Cancel Confirm