Getting a reference from a work item
![](http://jazz.net/_images/myphoto/1fe2b2ea6adce67f335165ac9a274b57.jpg)
I'm trying to query some data from a Jazz server. I have been able to query a list of work items (stories and tasks) and get the data I need from them, but I want to be able to tell which stories are the parents for which tasks. From what I can tell I need to look up the links/references but so far I haven't found a way to do that with just an IWorkItem object to start with.
Any one have any examples or suggestions?
Any one have any examples or suggestions?
One answer
![](http://jazz.net/_images/myphoto/1fe2b2ea6adce67f335165ac9a274b57.jpg)
I'm trying to query some data from a Jazz server. I have been able to
query a list of work items (stories and tasks) and get the data I need
from them, but I want to be able to tell which stories are the parents
for which tasks. From what I can tell I need to look up the
links/references but so far I haven't found a way to do that with
just an IWorkItem object to start with.
Any one have any examples or suggestions?
IWorkItemCommon#resolveWorkItemReferences(IWorkItemHandle workItem,
IProgressMonitor monitor)
returns the references for a work item.
--
Regards,
Patrick
Jazz Work Item Team