I have played with this a bit on occasion but feel like I could benefit from some documentation and even examples of usage. I have been poking around Atlassian docs and Community and even Google but haven't turned up anything useful. It is sort of hard to come up w/ the right search terms for this w/o getting overwhelmed by "nope that's not it" references.
I see the documentation at https://support.atlassian.com/jira-software-cloud/docs/advanced-search-reference-jql-fields#Advancedsearching-fieldsreference-filter
I've seen subfilters used when you want to have a list of people in different filters and only make changes in one place. For example
Your first filter with example names in a team:
assignee in (jsmith, bsmith, jko)
Save the filter with a name such as "MyTeamNameHereMembers"
In all the filters where you want to use that set of people:
filter = "MyTeamNameHereMembers" and project in (PKEY1, PKEY2, PKEY3)
I've also seen it used in ScriptRunner JQL to find all the issues and sub-issues in an Epic in the past. Nested filters can have performance problems, and if uses as agile board filters Jira may not be able to work out which projects you need to have Manage Sprint permissions for
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks to all for your input and digging into the docs!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
not a perfect answer but maybe it helps a bit. I found a JQL Cheat Sheet:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Jack Brickey - hey Jack! Can you elaborate a little more on what you're looking for?
(I can see how this would be fiddly to search for... )
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
i'm struggling w/ how to make it more clear other than I want some documentation on how one might leverage the JQL "filter" function. The challenge here I guess is that I don't have a scenario I'm trying to solve but rather just trying to see if there is any reference that might educate me to benefit in the future.
one obvious UC is to create a 'base' filter and then reference it for different filters so as to save you time in creating complex lengthy filters, e.g. complex date searches, etc.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Matt Doar - listed the official doc on "filter"! Props to him. :)
Reading it, and I learned something today: never thought about excluding filter results using "NOT IN" / != ... I'm excited to come up with a practical use for that.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
yes this is exactly the unique use cases i'm think about.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I'm finding more and more ways the function can be useful. One way we use it is to allow a saved ScriptRunner enhanced search to be used in boards' quick filters and for doing swimlanes by JQL, since the custom JQL functions implemented by ScriptRunner can't be used directly in those cases.
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.