How to get the itemUUID and IVersionableHandle object of the particular (XML)file
Boopathy Nagaraj (15●1●7)
| asked Jul 26 '16, 5:36 a.m.
edited Jul 26 '16, 12:10 p.m. by David Lafreniere (4.8k●7)
Hello Jazz team
How to retrieve the itemUUID of the particular(XML) file? Using that itemUUID how to get IversionableHandle object for that particular(XML) file? |
Accepted answer
If you have the workspace loaded, and want to find a particular file (by path) you can use ISharingManager#findShareable(). This returns an IShareable, and you can use IShareable#getVersionable() to get the IVersionableHandle (if the file is actually a shared file). Also #getItemId() on the versionable would return the item UUID.
Michael Valenta selected this answer as the correct answer
Comments Hello Mr.David
David Lafreniere
commented Aug 05 '16, 3:22 p.m.
| edited Aug 05 '16, 3:22 p.m.
FORUM MODERATOR / JAZZ DEVELOPER
This was not tested, but it should be something like:
|
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.