Jazz Register Log in
Jazz Forum Welcome to the Jazz Community Forum

Welcome to the Jazz Community Forum

Connect and collaborate with IBM Engineering experts and users

[closed] Finding Changesets by Itemid or comment

Hi All,
I have to identify if a changeset exists in any stream,prior to creating a new one - so, i am retrieving the uuid during the creation and using it further. I tried using "haschangesets" method to find if a workspace or stream contains a changeset with a particular uuid. code snippet as below:

UUID uuid1 = UUID.valueOf(fChangeSet.getItemId().getUuidValue());
        IChangeSetHandle csHandle = (IChangeSetHandle) IChangeSet.ITEM_TYPE.createItemHandle(uuid1, null);
        IChangeSet csNEW = (IChangeSet) teamRepository.itemManager().fetchCompleteItem(csHandle, IItemManager.REFRESH, monitor);
        cs.add(csHandle);
        if(fWorkspace.hasChangeSets(cs, monitor))
 
It doesnt locate an existing changeset -> I tried with both Changeset and the handle as well.

2. I also tried using changeset-searchcriteria , but couldn't find an option to search by UUID, ItemID or comment.

Please advise.
Thanks

0 votes


The question has been closed for the following reason: "Other" by valli Jun 09 '15, 3:38 a.m.


One answer

Permanent link
I am not sure that the IItemManager is the correct API. I would suggest to search in the API packages com.ibm.team.filesystem.* and com.ibm.team.scm.*

0 votes

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

Question asked: Jun 04 '15, 4:47 p.m.

Question was seen: 2,954 times

Last updated: Jun 09 '15, 3:38 a.m.

Confirmation Cancel Confirm