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?
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.
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*"
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.