JQL for finding labels that have exactly one value

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

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
Community showcase
Posted yesterday in Statuspage

How do your teams prepare for really high (planned) traffic days like Cyber Monday?

Hi there! Shannon from Statuspage here.  👋  With Cyber Monday quickly approaching, we're looking to hear from Atlassian customers – specifically from teams who touch incident response li...

43 views 0 4
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you