Problems with assignee in membersOf(group-1) OR assignee in membersOf(group-2) AND...

Hello

I'm having an issue with JQL searches that involved an OR operator when used with assignee in memberOF where anything after the AND in the following clauses are not interpreted.

A couple of examples:

project in ("my project") AND assignee in membersOf(Group-1) OR assignee in membersOf(Group-2) AND status in (Open, "In Progress", Approved, Scheduled)

Serach results include issues with status' of canceled, closed, denied, AND open, in-progress, approved, etc.

project in ("my project") AND assignee in membersOf(Group-1) OR assignee in membersOf(Group-2) AND status not in (Closed,Canceled,Denied,Deployed,Feedback,Hold,Resolved) ORDER BY assignee ASC, key DESC

Serach results include issues with status' closed, canceled, denied, deployed, AND open, in-progress, approved, etc.

In both cases, removing the OR assignee in membersOf(Group-2) returns the proper search results

We're using JIRA 5.0.1. Is this a bug, am I missing something?

Thank you!

TW

1 answer

1 accepted

You are missing the parentheses :-)

project in ("my project") AND ((assignee in membersOf(Group-1) OR assignee in membersOf(Group-2)) AND status not in (Closed,Canceled,Denied,Deployed,Feedback,Hold,Resolved) ORDER BY assignee ASC, key DESC

It's not like the OR would be stronger than the AND;-)

Cheers Christian

Perfect, thanks!

Suggest an answer

Log in or Join to answer
Community showcase
Sarah Schuster
Posted Jan 29, 2018 in Jira

What are common themes you've seen across successful & failed Jira Software implementations?

Hey everyone! My name is Sarah Schuster, and I'm a Customer Success Manager in Atlassian specializing in Jira Software Cloud. Over the next few weeks I will be posting discussion topics (8 total) to ...

3,278 views 14 20
Join discussion

Atlassian User Groups

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

Find a group

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

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot