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

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 ?

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events