我正在使用下面的代码并返回跟踪更改链接的数量,我确信它也包含更改集但是我无法找到正确的api来获取该数据。请帮忙
IReference reference = linkManager.referenceFactory().createReferenceToItem(workItem.getItemHandle());
ILinkQueryPage childPage;
childPage = linkManager.findLinks(reference, monitor);
ILinkCollection linkCollection = childPage.getAllLinksFromHereOn();
Collection<ILink> links1 = linkCollection.getLinksById("com.ibm.team.workitem.linktype.scm.tracksChanges");
for (Object wI : links1) {
ILink link = (ILink) wI;
Object source = link.getSourceRef().resolve();
IItemHandle itemHandle = (IItemHandle) link.getSourceRef().resolve();
if (source instanceof IChangeSetHandle) {
changeSet = (IChangeSet) repo.itemManager().fetchCompleteItem(itemHandle,
IItemManager.DEFAULT, monitor);
System.out.println("changeset---1"+changeSet);
}
}