It's all about the answers!

Ask a question

How to get IChangeset object from Changeset UUID


1
1
Desh Sharma (4669) | asked Feb 26 '13, 3:02 p.m.
Is it possible to get ChangeSet object from Changeset UUID?

2 answers



permanent link
Andrew Niefer (6385) | answered Feb 26 '13, 4:47 p.m.
JAZZ DEVELOPER
edited Feb 26 '13, 4:48 p.m.
You can create an IChangeSetHandle from the UUID:
IChangeSetHandle csHandle = (IChangeSetHandle) IChangeSet.ITEM_TYPE.createItemHandle(uuid, null);

Once you have the handle, you can fetch the full IChangeSet object on the client using the IItemManager:
IChangeSet cs = (IChangeSet) teamRepository.itemManager().fetchCompleteItem(csHandle, IItemManager.DEFAULT, null);

On the server you would use IRepositoryItemService to fetch the item.

permanent link
Desh Sharma (4669) | answered Feb 27 '13, 9:44 a.m.
Thanks Andrew it worked.
Just want to add one more thing about setting uuid.

UUID uuid1 = UUID.valueOf("_uCIIAkMyEeKVFJuhAA5B5Q");
IChangeSetHandle
csHandle = (IChangeSetHandle) IChangeSet.ITEM_TYPE.createItemHandle(uuid1, null);

Your answer


Register or to post your answer.