Hi community,
I am writing with a question about JQL language.
I want to write a query that will retrieve only the issues that contain those two options (in my instance TNL and NGN in one ticket and only those values). I only seem to be able to have gotten as far as the query that I wrote retrieves tickets that contain either TNL, either NGN either tickets with both TNL and NGN on it.
Here is the query I wrote: project = ATWP AND "Relevant Analytics Team[Select List (multiple choices)]" = "Do Not Use - Content Analytics" OR "Relevant Analytics Team[Select List (multiple choices)]" = "Do Not Use - Marketing Analytics" AND "Title Group[Select List (multiple choices)]" = TNL AND "Title Group[Select List (multiple choices)]" = NGN
Can you see something wrong with it/Jira does not allow for more?
Thank you,
Rocsi
This is likely to be the wrong query because you have mixed AND and OR to join all the clauses together without telling it how you think it they are actually joined up. Jira just reads left to right, and that means your query really isn't going to do what you think.
Use parentheses to explain the question in the right order.
I can't work out quite what you were trying to do here, your description of the query only explains part of it, but I think what you really need is
project = ATWP
AND ( "Relevant Analytics Team[Select List (multiple choices)]" = "Do Not Use - Content Analytics" OR "Relevant Analytics Team[Select List (multiple choices)]" = "Do Not Use - Marketing Analytics" )
AND ( "Title Group[Select List (multiple choices)]" = TNL OR "Title Group[Select List (multiple choices)]" = NGN )
This will fetch issues from project ATWP, that have title group of TNL or NGN (including when both are set), and have the team set to one of the two "do not use" values.
I would simplify that further:
project = ATWP
AND ( "Relevant Analytics Team[Select List (multiple choices)]" in ("Do Not Use - Content Analytics", "Do Not Use - Marketing Analytics" ) )
AND ( "Title Group[Select List (multiple choices)]" in (TNL, NGN) )
Thank you Nick!
My JQL is not at all advanced hence why I could not get what I wanted out of the query...makes sense the way you explained it, thanks so much!
Rocsi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.