Just a heads up: On March 24, 2025, starting at 4:30pm CDT / 19:30 UTC, the site will be undergoing scheduled maintenance for a few hours. During this time, the site might be unavailable for a short while. Thanks for your patience.
×I would like the following Quick Filter that includes both:
- issues of type "task" with any status
- issues of type "feature" with status "Ready to Dev"
I would expect this to work, assuming that the AND operator takes precedence over the OR operator:
type in (Task) OR type in (Feature) AND status in ("Ready to dev")
However, when I toggle the filter on my board, I only get issues of type "task".
I also tested adding parentheses like this:
(type in (Task)) OR (type in (Feature) AND status in ("Ready to dev"))
But I got the same result.
Is this kind of query possible with Quick Filters? What's wrong with query?
Hi @Jan Walsh ,
welcome to the Atlassian community.
Please use parentheses like this:
type = Task OR (type = Feature AND status = "Ready to dev")
Hi @Jan Walsh -- Welcome to the Atlassian Community!
Adding to Hana's suggestions:
To help learn more about the order of operations in JQL, please review this documentation and free training from Atlassian:
https://support.atlassian.com/jira-software-cloud/docs/jql-keywords/
https://university.atlassian.com/student/path/849533-gain-project-insights-through-jql
Kind regards,
Bill
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Unfortunately, I have already tried (and just tried again) the query that you recommended.
Here is a screenshot before I save the Quick Filter:
Here is a screenshot after I click "Update":
As you can see, the parentheses aren't saved. When I open it again, the parentheses aren't there. And, when I refresh my board and use the filter, only tasks appear.
I confirm that I have issues of type "Feature" that should appear and to confirm this even more, a query like this [type = Feature AND status = "Ready to dev"] works to retrieve Feature issues with this status.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Jan Walsh ,
you are right, the editor is removing the parentheses.
I've found out there have been issues with this behaviour in the past.
But, it works for me, even without the parentheses.
So, you are saying, that if you create three filters
then when you use only the first one - all the Tasks show, the second one - all the Features with status "Ready to dev" show, but the third one shows only the Tasks?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
There are several places in Jira where it removes any parentheses entered. In some cases, it appears to automagically reorder the clauses to match the original intent...some times not so much.
The only workaround I have found is to ensure one orders the operators and clauses (perhaps adding extra ones) to ensure the Boolean order of precedence aligns with what is needed. I believe the order is:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Hana Kučerová It turns out that the issues I want to filter by are not of type "Feature", but of type "Story". That was the problem!
Thanks for making me redo all these checks which allowed me to pinpoint the problem :)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I'm happy to help :-)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Jan Walsh
This query looks up for everything in the parantheses first then adds everything outside of parantheses.
issuetype = Task OR (issuetype = Feature AND status = "Ready to dev")
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Nikola Perisic,
Unfortunately, setting parentheses in the query is not saved when updating the Quick Filter. See my response to Hana's comment above.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Atlassian Government Cloud has achieved FedRAMP Authorization at the Moderate level! Join our webinar to learn how you can accelerate mission success and move work forward faster in cloud, all while ensuring your critical data is secure.
Register Now
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.