Get history of IFileItem
One answer
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,
Comments
Florian Haskamp
Nov 14 '13, 9:22 a.m.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?
ioana lazar
Jul 23 '12, 9:15 a.m.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