The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

JQL query I created is showing closed tickets

Orry Wright-Larson
May 2, 2022

The below query is still pulling Closed tickets from the project and I am not sure if I am just writing the query wrong or what other cavats I am missing here. 

 

project = "PROJECT" AND comment ~ term1 OR comment ~ term2 AND status not in (Closed, resolved)

 

Thank you for your help

1 answer

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

4 votes
Answer accepted
Jack Brickey
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Champions.
May 2, 2022

Can you try this...

project = "PROJECT" AND (comment ~ term1 OR comment ~ term2) AND status not in (Closed, resolved)

Dirk Ronsmans
Community Champion
May 3, 2022

@Orry Wright-Larson ,

Just a little context here, you should consider an OR statement as a break in your JQL. Any thing you introduce an OR (without enclosing it in brackets) it will break up your query.

So in your example you basically said:

project = "PROJECT" AND comment ~ term1

OR

comment ~ term2 AND status not in (Closed, resolved)

 

So your second status limitation does not reflect the first part. The way Jack mentions it you'll actually use both OR comments as a single statement and all AND's will be concatenated.

Like Jack Brickey likes this
Jack Brickey
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Champions.
May 3, 2022

@Orry Wright-Larson , pleas let us know if this works or if have further questions.