how to get changeset info by workitem changeset references use RTC server SDK
![]() i can get the workitem changeset references by the next code,but how to get the workitem-related changeset info
IWorkItemReferences References = workItemCommonsServer.resolveWorkItemReferences(oldWorkItem,monitor);
List<IReference> referencesChangeSetList = References.getReferences(endPointDescriptor);
for (IReference iReferencea : referencesChangeSetList) {
//String changeSetComment = "Changes in: Test- <No Comment> - jtsadmin - Sep 29, 2019 4:30 PM";
}
|
Accepted answer
![]()
List<IChangeSetHandle> csHandles = new ArrayList<IChangeSetHandle();
for (IReference ref : references) {
if (ref.resolve() instanceof IChangeSetHandle) {
csHandles.add((IChangeSetHandle) ref.resolve());
}
}
if (!csHandles.isEmpty()) {
// Fetch the full IChangeSets from the repo
}
Gou Peng selected this answer as the correct answer
|
Comments
Not sure what you ask.
use RTC-SDK-Server-6.0.6.1 ,How to get the content of a change set , which is linked to a work item