It's all about the answers!

Ask a question

Retrieving WorkItem


m sawires (1463268) | asked Aug 25 '09, 7:09 a.m.
Hi,
What is the best way to retrieve WorkItem programmatically? Is it by using the IQueryClient interface by defining an expression?

Thank you.

One answer



permanent link
Patrick Streule (4.9k21) | answered Aug 26 '09, 9:52 a.m.
JAZZ DEVELOPER
What is the best way to retrieve WorkItem programmatically? Is it by
using the IQueryClient interface by defining an expression?

It depends ;)

If you have a work item handle, you can use the ItemManager to fetch the
work item or alternatively
IAuditableClient#resolveAuditable

If you have a work item ID, you can use
IWorkItemClient#findWorkItemById

Otherwise, you have to query for the work items. For details, please see:
https://jazz.net/wiki/bin/view/Main/QueryDevGuide

--
Regards,
Patrick
Jazz Work Item Team

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.