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

Programmatically Extended Queries in Work Items Result View

Hi,

There are some query conditions not supported in the Client.
(For instance, "get all workitems that have not workitem child of type x". if there is a way to do it please tell me)

Programmatically I can perform query and iterate all results in order to filter them.

My question: Is there any way to get the programmatically created results in the "Work items" Qury results view ?

0 votes



2 answers

Permanent link
There are some query conditions not supported in the Client.
(For instance, "get all workitems that have not workitem child of
type x". if there is a way to do it please tell me)

Programmatically I can perform query and iterate all results in order
to filter them.

My question: Is there any way to get the programmatically created
results in the "Work items" Qury results view ?

You could use
WorkItemUI.showWorkItems(IWorkbenchWindow window, IProjectAreaHandle
projectArea, String title, IWorkItemHandle[] workItems)

--
Regards,
Patrick
Jazz Work Item Team

0 votes


Permanent link

You could use
WorkItemUI.showWorkItems(IWorkbenchWindow window, IProjectAreaHandle
projectArea, String title, IWorkItemHandle[] workItems)

--
Regards,
Patrick
Jazz Work Item Team


Thanks Patrick,

I had a problem getting the active workbench window while a plugin is running.
Since the plugin runs a FoundationJob it creates dialog. So PlatformUI.getWorkbench().getActiveWorkbenchWindow() returns null.
The solution was to call it after the Job is finished.

job.setUser(true);
job.schedule();
WorkItemUI.showWorkItems(PlatformUI.getWorkbench().getActiveWorkbenchWindow(), projectArea, "Filtered Query", workitems);

Thanks,
Moti

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
× 10,938

Question asked: Dec 07 '09, 9:11 a.m.

Question was seen: 5,448 times

Last updated: Dec 07 '09, 9:11 a.m.

Confirmation Cancel Confirm