Problem with OR in a query
![](http://jazz.net/_images/myphoto/2f3025b19a70f8c7d9e8a4e8956eaad0.jpg)
Hi, I have two workitems, WI 14 is a parent of WI 15. I want a query to
find both so I wrote an OR query (any can match) with two conditions
within it:
Parent > Id is (and specified the id)
Id is (and specified the same id)
I thought this would show both WI 14 and 15 in the results, but it only
shows WI 15. It makes no difference if I swap the two conditions over in
the GUI.
Is there a bug here, or is understanding about how queries work, wrong?
Many thanks,
Jeremy
find both so I wrote an OR query (any can match) with two conditions
within it:
Parent > Id is (and specified the id)
Id is (and specified the same id)
I thought this would show both WI 14 and 15 in the results, but it only
shows WI 15. It makes no difference if I swap the two conditions over in
the GUI.
Is there a bug here, or is understanding about how queries work, wrong?
Many thanks,
Jeremy
2 answers
![](http://jazz.net/_images/myphoto/2f3025b19a70f8c7d9e8a4e8956eaad0.jpg)
Parent > Id is (and specified the id)
Id is (and specified the same id)
I thought this would show both WI 14 and 15 in the results, but it only
shows WI 15. It makes no difference if I swap the two conditions over
in the GUI.
Is there a bug here, or is understanding about how queries work, wrong?
Hi Jeremy.
Yes, this is a bug: You are seeing
https://jazz.net/jazz/resource/itemName/com.ibm.team.workitem.WorkItem/61361
Reagrds,
Patrick
Jazz
Work Item Team
![](http://jazz.net/_images/myphoto/2f3025b19a70f8c7d9e8a4e8956eaad0.jpg)
Got it, thanks.
Jeremy
On 14/11/2008 10:36, Patrick Streule wrote:
Jeremy
On 14/11/2008 10:36, Patrick Streule wrote:
Parent > Id is (and specified the id)
Id is (and specified the same id)
I thought this would show both WI 14 and 15 in the results, but it
only shows WI 15. It makes no difference if I swap the two conditions
over in the GUI.
Is there a bug here, or is understanding about how queries work, wrong?
Hi Jeremy.
Yes, this is a bug: You are seeing
https://jazz.net/jazz/resource/itemName/com.ibm.team.workitem.WorkItem/61361
Reagrds,
Patrick
Jazz
Work Item Team