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

OR and AND Operator in the same Query

Hello,

is it possible to mix OR and AND Operator in one Query?

I know how to build a Term with one Operator. My code for doing this is:


private Term getTermFromExpressions(List<Expression> expressions) {

Term term = new Term(Operator.AND);

for (Expression expression : expressions) {

term.add(expression);
}

return term;

}


Is it possible to do something like that?

(projectArea1 OR projectArea2) AND (workItemType1 OR workItemType2)

Best Regards

0 votes


Accepted answer

Permanent link
https://jazz.net/forum/questions/206856/how-to-join-expressions-using-term-to-get-the-specific-workitems
Melanie Finke selected this answer as the correct answer

0 votes


2 other answers

Permanent link
I assume so, as the UI allows u to build a query like that

0 votes


Permanent link
I assume so, as the UI allows u to build a query like that


Thank you for the answer, but maybe it was the wrong question. I like to know how I do something like that.

Regards

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,954

Question asked: Apr 27 '12, 9:35 a.m.

Question was seen: 5,599 times

Last updated: Sep 19 '15, 2:01 p.m.

Confirmation Cancel Confirm