How do I create a JQL filter to filter a label?

Tainah Cinti April 2, 2024

Hi All,

I need to filter a label called 'Roadmap' in a Board and I tried to create a simple filter but it´s not pulling the tickets with this label. 

How can I use JQL to filter all tickets with this Roadmap Label? It should have just this label on it or the ticket can have more labels?

 

Thanks

1 answer

0 votes
Trudy Claspill
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
April 2, 2024

Hello @Tainah Cinti 

What is the JQL that you tried?

If you use a filter like this:

Labels = "Roadmap"

...then you will get all issues that have the value "Roadmap" as a Label. This does not exclude issues that have other Labels values also.

Jira does not provide a native method to filter for issues that have one and only one specific value in the Labels field. The only native method for doing that is to add another clause to the filter that enumerates all the other possible Labels values:

AND Labels not in ("labelvalue1","labelvalue2","labelvalue3",...)

There are other possible work arounds, like using Automation Rules to update a field that holds a count of how many Labels values an issue has. If you did that you could then use a JQL like this:

Labels='Roadmap' and Labels_Count=1

Tainah Cinti April 18, 2024

Thank you, but I want to have this filter in the Board page. Is it possible? To see with a kanban view.
And there´s no problem to have more values.

Trudy Claspill
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
April 18, 2024

In the Kanban boards for Software and Service projects (both Team Managed and Company Managed) you can make and save Quick/Custom filters that you can reuse to show a subset of the issue included in the board. You must be an administrator for the board, and a project administrator for the Location project specified for the board.

https://support.atlassian.com/jira-software-cloud/docs/configure-quick-filters/

In Business/Work Management boards there is a Filters option that allows you to create and save filter, but it doesn't allow you to use JQL. It does, however, let you filter based on Labels and it shows you the label values from which you can select.

https://support.atlassian.com/jira-work-management/docs/filter-items-to-find-what-you-need-in-your-project/

Like Tainah Cinti likes this

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
TAGS
AUG Leaders

Atlassian Community Events