It's all about the answers!

Ask a question

Retrieve links from a work item


Michele Pegoraro (1.8k14119103) | asked Jul 28 '09, 8:50 a.m.
How can I retrieve links from a WorkItem?
It seems that I could retrieve it from an WorkItemWorkingCopy instance using getReferences() method. But this can be obtained from an IWorkItemWorkingCopyManager that can be obtain only on Client side. So, can I retrieve something similar on service side?
And also, why do I to have a working copy if I don't want to modify the work item? There is another way?

Thanks.

2 answers



permanent link
Marcel Bihr, Jazz Work Item team (1.4k) | answered Aug 06 '09, 4:04 a.m.
JAZZ DEVELOPER
Hi
On the Server, you can retrieve the IWorkItemReferences from IWorkItemServer (or IWorkItemCommon) using the 'resolveWorkItemReferences' method.

If you do not want to modify a work item on the client side, you do not have to use the workingcopy. Using the workingcopy however ensures that you get events for changes to the same workingcopy on the same client (e.g. while the workitem is edited in an editor).

Regards

Marcel
Jazz Work Item team

permanent link
Michele Pegoraro (1.8k14119103) | answered Aug 06 '09, 4:49 a.m.
Thank you very much for your answer. It runs correctly.

Your answer


Register or 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.