Is it possible to combine "and" and "or" operations in the oslc.where clause?
![](http://jazz.net/_images/myphoto/bca861382ce117d709ab024cb35e0d05.jpg)
I have an olsc query that filters on resolution value. It works fine with one value, but I need to filter on multiple values of Resolution. Is this possible?
Accepted answer
![](http://jazz.net/_images/myphoto/bca861382ce117d709ab024cb35e0d05.jpg)
Unfortunately you cannot do it by using "OR", as OSLC does not allow the "OR" operator. Try "IN".
boolean_op
The
boolean_op
term represents a boolean operation that lets you combine simple boolean expressions to form a compound boolean expression.
The only boolean operation allowed is "
and
" which represents conjunction. The boolean operator "
or
" for disjunction is not allowed in the interests of keeping the syntax simple. The effect of "
or
" in the simple case of testing a property for equality with one of several values can be achieved through the use of the "
in
" operator. For example, the following query finds bugs with severity "
high
" or "
medium
":
http://example.com/bugs?oslc.where=cm:severity in ["high","medium"]</pre>