Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

How can I compare the new and old links in a work item attribute?

When a new instance of a link (such as Blocks or DependsOn) is created, I need to compare the new and old links using IWorkItemReferences.getReferences(IEndPointDescriptor) . However, both the new and old links appear to be the same. How can I compare the two sets of links

1

0 votes



One answer

Permanent link
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);

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. 

0 votes

Your answer

Register or log in to post your answer.

Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 12,117

Question asked: Jul 03, 6:50 a.m.

Question was seen: 659 times

Last updated: Jul 04, 2:47 a.m.

Related questions
Confirmation Cancel Confirm