Forums

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

JQL for finding labels that have exactly one value

Alyssa Kwan
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!
January 11, 2017

Is it possible to compose JQL to find issues with a labels field that has exactly one label?

We've overloaded the labels field for two purposes: commitment (or not), and what kind of issue it is. I want to return all issues that haven't been given an issue type. "labels IS EMPTY" works for issues that are not commitments and are untyped. How do I search for issues where the labels field only has the commitment label, and nothing else? These are commitments that are untyped.

1 answer

0 votes
Nic Brough -Adaptavist-
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
January 13, 2017

I don't think your data is structured well enough for JQL to be able to form a query to do that.

I think you need to split it into two fields before you can create functioning queries.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events