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 Oct 09, 2018 in Jira Core

How to manage many similar workflows?

I have multiple projects that use variations of the same base workflow. The variations depend on the requirements of the project or issue type. The variations mostly come in the form of new statuses ...

251 views 6 0
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