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

Retrieve IChangeSet by changeSetItemId

 As title, if I know that "changeSetItemId=_kpercZeHEeSI854Fc8OZ_A", how do I retrieve the corresponding IChangeSet by this information?

0 votes


Accepted answer

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

1 vote

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

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,937

Question asked: Apr 02 '15, 2:44 a.m.

Question was seen: 2,264 times

Last updated: Apr 02 '15, 3:42 a.m.

Confirmation Cancel Confirm