Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Can I use a "Like" query for Labels?

Durgadas Bhandary
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
May 15, 2025

Hi All,

I need to Query Labels to search using the "Like" option. By this I mean, among the list of labels, I would like to search for label like "Dept-%". Is that possible? 

2 answers

1 vote
Daniel Pierce
Contributor
May 15, 2025

Unfortunately the operator '~' is not supported by the 'labels' field.

Your best bet is to use the IN operator

For example: 

labels in (Dept-Sales, Dept-Marketing, Dept-HR)

Alternatively you might be able to use a third party app with custom JQL functions. They might support a like query. 

0 votes
Dilip
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
May 16, 2025

No, you cannot use a "LIKE" or partial match query for the Labels field in Jira JQL. JQL only supports exact matches for labels. For example, you can use:

labels = "my-label"
labels in ("label1", "label2")

But you cannot do:

labels ~ "partial-label"
labels LIKE "prefix*"

 

Suggest an answer

Log in or Sign up to answer