Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Next challenges

Recent achievements

  • Global
  • Personal

Recognition

  • Give kudos
  • Received
  • Given

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Save JQL with brackets in Quick Filters

Hi!
I have a Kanban board and try to set up some Quick Filters.
I cannot save JQL that consists of brackets for the logical rule. They just disappear.
So, I cannot save the JQL like this
any_filed = smth OR (any_filed = smth2 AND another_field = smth3) 

I get the same, but without brackets:
any_filed = smth OR any_filed = smth2 AND another_field = smth3

It doesn't look like an expected behavior and I cannot create sophisticated filters.

1 answer

Hi @Vitalii Stavropolskyi , welcome here on the community :).

I just checked on my instance and following JQL behaves as you described:

  1. assignee = currentUser() OR ("Change risk" = High AND "Change type" = Normal)
  2. -> Save ->
  3. assignee = currentUser() OR "Change risk" = High AND "Change type" = Normal 

But this JQL behaves correctly

  • assignee = currentUser() AND ("Change risk" = High OR "Change type" = Normal)
  • -> Save -> 
  • assignee = currentUser() AND ("Change risk" = High OR "Change type" = Normal)

But I think it is because of optimization of the JQL query, because AND (as logic operator) takes precedence over OR.

So JQL on row 1 is the same as JQL on row 3 (I mean both means the same - logically)

Thank you @Martin Bayer _MoroSystems_ s_r_o__ for the answer and investigation!

It is really an explanation.

Just didn't expect this optimization on the fly. In my case, I have 8 logical operators in a row and brackets helped me to structure this query. But the most important is to be sure it works as expected. Thanks!

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
TAGS
Community showcase
Published in Jira

Announcing the waitlist for Jira Work Management

Hey there Cloud Community members! We’re excited to give you the first glimpse of the new home for business teams on Jira — Jira Work Management. Jira Work Management is the next generation of J...

750 views 12 19
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you