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

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

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?


0 votes



One answer

Permanent link
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/.

0 votes

Comments

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);

1 vote

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

Question asked: Jan 10 '14, 10:01 a.m.

Question was seen: 4,356 times

Last updated: Jan 10 '14, 11:11 a.m.

Confirmation Cancel Confirm