It's all about the answers!

Ask a question

What is the meaning of these parameters?


wang lu (5664) | asked Nov 07 '10, 9:30 p.m.
IQueryDescriptor queryDescriptor = queryClient.findSharedQueries(arg0, arg1, arg2, arg3, arg4);
What is the meaning of these parameters? or where can I find QueryAPI?

11 answers



permanent link
Patrick Streule (4.9k21) | answered Nov 16 '10, 6:08 a.m.
JAZZ DEVELOPER
On 11/16/10 11:08 AM, liumawang wrote:
I have retrieve workitem list by executing a query. This query returns
some defects, but IWorkItem interface only have limited method to get
basic information. I did not find method to get defect priority,
severity, defect id...

If you take a closer look at IWorkItem you'll see

getId()
getPriority()
getSeverity()

....

In order to get the name and icon of e.g. priority or severity, use:

IAttribute priorityAttribute=
workItemService.findAttribute(projectArea, IWorkItem.PRIORITY_PROPERTY,
monitor);
IEnumeration<IPriority> priorityEnumeration= (IEnumeration<IPriority>)
workItemService.resolveEnumeration(priorityAttribute, monitor);
Identifier<IPriority> priority2= fWorkItem.getPriority();
IPriority priority= priorityEnumeration.findEnumerationLiteral(priority2);

--
Regards,
Patrick
RTC Work Item Component Lead

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.