Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

JQL Filter on multiple keywords

Marius October 16, 2020

Hello,

 

I'm trying to run a filter for all open bugs that contains in their 'description' field, two different words, Mars and 2nd word, Galaxy. If i type bellow syntax, i get no results:

project in (cosmos) AND issuetype = Bug AND status = Open AND description ~ "Mars Galaxy"

 Is there a type of query that can return only the bugs that contains both words independently, but not tied together in a string such as "Mars Galaxy"?

Does Jira v8.5.5 support such query?

 

Thanks

3 answers

1 accepted

0 votes
Answer accepted
Jack Brickey
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
October 16, 2020

Unfortunately not. The text searching is lacking when trying to find exact strings. In your example it would return all issue with either word anywhere in the description field. There are a number of posts on this and there is an open bug on it too.

Marius October 16, 2020

thank you

2 votes
Marius October 16, 2020
project in (cosmos) AND issuetype = Bug AND status = Open AND (description ~ Mars AND description ~ Galaxy)

With this query, it works.

It returns all the issues with both "Mars" and "Galaxy" words inside the description field. 

0 votes
Marius October 16, 2020

For:

project in (cosmos) AND issuetype = Bug AND status = Open AND description ~ ("Mars", "Galaxy")

I'm getting the error:

Operator '~' does not support the list value '("Mars", "Galaxy")' for field 'description'.

Suggest an answer

Log in or Sign up to answer