Jira Jql Query - What * Means?

There is no regexp in JQL:

What is the meaning of * in a jql Query?, I have different results when using and not using it. But I didn't find any consequence in the results.

2 Answers

~ means CONTAINS, so

summary ~ win

means WHERE summary CONTAINS the exact word win. * is a wildcard. The example:

summary ~ "win*"

means WHERE summary CONTAINS win and any multiple character combination after it.

There are two types of wild-cards in JQL: ? and * where:

  1. To perform a single character wildcard search use the "?" symbol.
  2. To perform a multiple character wildcard search use the "*" symbol.

Check the JIRA advanced searching guide and the wild-card explanation here.

3

Atlassian calls the '~' operator "contains", but it doesn't actually mean "contains". For example, searching the Customer field (a custom text field) for "ABCD" will return a hit for "ABCD, EFGH" but not for "EFGH, ABCD". And you can't use the wildcard character * at the start of the search string. See wildcard searches and JRASERVER-6218 for more. We're investigating Adaptavist ScriptRunner to work around this 12 year-old bug.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Chloe Bennett

Chloe Bennett

Culture, Media & Entertainment Columnist

Chloe Bennett explores the intersection of pop culture, streaming entertainment, digital trends, and contemporary lifestyle. Her weekly commentary reaches thousands of culture enthusiasts.

Share this article
Twitter Facebook Pinterest