How to fetch complete change set linked to the work item?

一个人想着一个人 提交于 2019-12-08 08:15:11

问题


I am using below code to resolve and fetch the change set data

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

Using above code I am getting below exception :

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

来源:https://stackoverflow.com/questions/49506594/how-to-fetch-complete-change-set-linked-to-the-work-item

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!