如何获取链接到工作项的完整更改集?

时间:2018-03-27 07:19:15

标签: java api rtc

我使用下面的代码来解析和获取更改集数据

IChangeSet changeSet = null;
        try{
            for(Object wI : links1){
                ILink link = (ILink) wI;
                Object source = link.getTargetRef().resolve();
                IItemHandle changeSetHandle = (IItemHandle) link.getTargetRef().resolve();
                if (source instanceof IChangeSetHandle) {
                    changeSet = (IChangeSet) repo.itemManager().fetchCompleteItem(changeSetHandle,
                            IItemManager.DEFAULT, monitor);
                    System.out.println("changeset---1"+changeSet);
                }
            }
            return parentWorkItemIds;
        }catch(Exception e){
            e.printStackTrace();
        }

使用上面的代码我得到以下异常:

com.ibm.team.repository.common.ItemNotFoundException: CRJAZ0215E The following record was not found in the database: com.ibm.team.scm.common.internal.impl.ChangeSetHandleImpl

0 个答案:

没有答案