How to translate IFolderHandle into IFolder
Lee John (51●3●10)
| asked Jun 21 '16, 3:09 a.m.
edited Jun 21 '16, 9:17 a.m. by David Lafreniere (4.8k●7)
So far I have known how to extract change set from IWorkItem according to link below:
Now I can retrieve IFileItem object and know the name of file in changeset. This object provides API getParent() which return an object IFolderHandle which I guess might related to the parent folder of that file and I know there is a class called IFolder which may related to this handler.
My question is how I translate object of "IFolderHandler" into object of "IFolder"?
So I can know the parent folder name of file in change set.
Many thanks!
|
One answer
Ralph Schoon (63.5k●3●36●46)
| answered Jun 21 '16, 3:58 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
I think https://rsjazz.wordpress.com/2013/10/15/extracting-an-archive-into-jazz-scm-using-the-plain-java-client-libraries/ shows this in getVersionable(). In any case you have to always resolve handles to the full object. How this is done depends on the part of the API you are working in.
|
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.