Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

How to get IChangeset object from Changeset UUID

Is it possible to get ChangeSet object from Changeset UUID?

1

1 vote



2 answers

Permanent link
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.

2 votes


Permanent link
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);

0 votes

Your answer

Register or log in to post 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.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 10,947

Question asked: Feb 26 '13, 3:02 p.m.

Question was seen: 7,282 times

Last updated: Feb 27 '13, 9:44 a.m.

Confirmation Cancel Confirm