It's all about the answers!

Ask a question

Problem with OR in a query


Jeremy Hughes (2164837) | asked Nov 14 '08, 4:18 a.m.
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

2 answers



permanent link
Patrick Streule (4.9k21) | answered Nov 14 '08, 5:38 a.m.
JAZZ DEVELOPER
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

permanent link
Jeremy Hughes (2164837) | answered Nov 14 '08, 8:48 a.m.
Got it, thanks.

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

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.