Retrieve IChangeSet by changeSetItemId
![]()
As title, if I know that "changeSetItemId=_kpercZeHEeSI854Fc8OZ_A", how do I retrieve the corresponding IChangeSet by this information?
|
Accepted answer
![]()
Ralph Schoon (62.3k●3●36●43)
| answered Apr 02 '15, 3:07 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
As described in https://rsjazz.wordpress.com/2013/03/20/understanding-and-using-the-rtc-java-client-api/ section UUID's, you create a handle from the UUID and then you use the normal search/resolve mechanism to get the object.
Lee John selected this answer as the correct answer
Comments Working code snippet:
String uuid = "_kpercZeHEeSI854Fc8OZ_A";
// IItemHandle handle = [itemtype].ITEM_TYPE.createItemHandle(UUID.valueOf(uuid_string), null);
IChangeSetHandle changeSetHandle=(IChangeSetHandle)IChangeSet.ITEM_TYPE.createItemHandle(UUID.valueOf(uuid), null);
IChangeSet changeset = (IChangeSet) TeamRepository.itemManager()
.fetchCompleteItem(changeSetHandle, IItemManager.DEFAULT,
null);
|