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...
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:
- To perform a single character wildcard search use the "?" symbol.
- To perform a multiple character wildcard search use the "*" symbol.
Check the JIRA advanced searching guide and the wild-card explanation here.
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.