How can I compare the new and old links in a work item attribute?
One answer
Please see https://jazz.net/forum-guidelines.jsp and provide the necessary context.
To my best knowledge:
Work item Links are not stored in any work item attribute. You need to resolve the references.
IWorkItemReferences workitemReferences = IWorkItemCommon
.resolveWorkItemReferences(workItem, null);
Work item Links are not stored in any work item attribute. You need to resolve the references.
IWorkItemReferences workitemReferences = IWorkItemCommon
.resolveWorkItemReferences(workItem, null);
In precondition, you get the previous state and the new state, you can get the references for those states.
A work item is an IAuditable. An IAuditable has access to the predecessor state as well as the merged predecessor state. You should be able to get the links for the current state and the predecessor. I have not looked at this in a long time.