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: 

parentehsis in jsql question

Aleksander Zmorzyński
August 6, 2018

Hey. I need a query that will show me change requests with priority blocker and bugs with priority blocker and critical. also Id like to see only issues NOT in status done, rejected or canceled. 

I wrote something like this
issuetype = "Change request" AND priority = Blocker OR issuetype = Bug AND priority = Blocker AND priority = Critical AND status not in (Done, Rejected, Canceled) 

But I think it wont work as intended.. I cant put whole issuetype in parenthesis, so how would I make such a query? :(

1 answer

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

1 vote
Answer accepted
Thomas Schlegel
Community Champion
August 6, 2018

Hi @Aleksander Zmorzyński,

this should do it:

((issuetype = "Change request" AND priority = Blocker) OR (issuetype = Bug AND priority in ("Blocker, Critical))) AND status not in (Done, Rejected, Canceled)

Aleksander Zmorzyński
August 6, 2018

Thanks ! I missed one parenthesis when I was trying myself :)

Thomas Schlegel
Community Champion
August 6, 2018

You're welcome, @Aleksander Zmorzyński

Aleksander Zmorzyński
August 6, 2018

Okay, one more question. Any idea why when I save

((issuetype = "Change request" AND priority = Blocker) OR (issuetype = Task AND priority = Blocker) OR (issuetype = Bug AND priority in (Blocker, Critical))) AND status not in (Done, Rejected, Canceled) ORDER BY priority DESC

Jira removes parenthesis on issuetypes ? so when I open the saved query again I get

(issuetype = "Change request" AND priority = Blocker OR issuetype = Task AND priority = Blocker OR issuetype = Bug AND priority in (Blocker, Critical)) AND status not in (Done, Rejected, Canceled) ORDER BY priority DESC"

is this giving me the same results ?

TAGS
AUG Leaders

Atlassian Community Events