I wrote the following jQuery:
project = X AND issuetype = "Test Plan" AND labels in (A,B)
When I run it, it returns me issues that have either A OR B, but I want A AND B. I was able to get around modifying it to:
project = X AND issuetype = "Test Plan" AND labels = A AND labels = B
Although it works I was wondering if "IN" should bring only issues that have both A AND B. I remember running this same query in other jiras and I'm almost sure it'd work.
Could you please confirm this information?
Hi, @Shiva Kanou
When you use IN, JQL searches for next issues, where at least one of values exists:
When you search with JQL labels = A AND labels = B, it's strict condition, that issue must have both labels.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Welcome to the community
The keyword in will bring you issue that have only A or b or both of them.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thank you very much. The support staff at my company kept saying it would bring either A or B.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Create two issue, one with 2 labels(foo, bar) and an another one with only one label (foo).
make you jql
labels in (foo, bar)
you will see the two issue brought by this jql
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
The issue is that it's bringing other issues also. The query says A AND B, but it's bringing:
A AND C
B AND D
A
B
A AND B
It's like OR, you know?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.