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 ? |
2 answers
![]() There are some query conditions not supported in the Client. 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 |