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
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!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.