It's all about the answers!

Ask a question

how do I query multiple projects to find all defect workitems using java api


K M (38325051) | asked Jan 10 '14, 10:01 a.m.
I can query multiple project using

        IQueryResult<IResolvedResult<IWorkItem>> results = queryClient.getResolvedExpressionResults(null, exprssion,IWorkItem.MEDIUM_PROFILE);

How would I create an expression for workitem type = "defect" for multiple projects, I can see how to do
it for a single project?


One answer



permanent link
Ralph Schoon (63.1k33645) | answered Jan 10 '14, 10:15 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
As far as I know, today queries are limited to one project area. So I assume you have to use multiple queries each on its own project area as shown here: http://rsjazz.wordpress.com/2012/10/29/using-work-item-queris-for-automation/.

Comments
1
K M commented Jan 10 '14, 11:11 a.m.

Nope if you run this with projectArea as null you query all the projects

IQueryResult<iresolvedresult<iworkitem>> results = queryClient.getResolvedExpressionResults(null, exprssion,IWorkItem.MEDIUM_PROFILE);

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.