Forums

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

Multiple Words in Quick Search box

Reuben Barclay February 3, 2019

If I typed multiple words into the Quick Search box, I wasn't getting the expected results.  When I analysed it, the cases not returned were those where word1 only appeared in the description, and word2 only appeared in a comment.   So if I typed foo bar , the expression was text ~ "foo bar", which if you expand text is similar to  (description ~ "foo bar" or summary ~ "foo bar" or comment ~ "foo bar" ...) when I was expecting ((description ~ "foo" or summary ~ "foo" or comment ~ "foo" ...) and ( description ~ "bar" or summary ~ "bar" or comment ~ "bar" ...)).

 

That is to get what I want, I had to type text~ "foo" and text ~ "bar"  into the basic search box.  Is there a way that typing foo bar  into the Quick Search box would expand to text~ "foo" and text ~ "bar" , and not text ~ "foo bar" 

 

 

1 answer

0 votes
Tom Lister
Community Champion
February 3, 2019
Reuben Barclay February 3, 2019

No it does not

Tom Lister
Community Champion
February 4, 2019

Hi Reuben

where I have issues with the text 'new Product'

new duct

returns nothing

new OR duct

returns issues with new or Product in them.

Reuben Barclay February 4, 2019

To replicate the scenario, do the following

1. in one case add to a description these two hopefully unique words: TOM111 TOM222

2. add to one comment in the same case these two hopefully unique words: TOM333 TOM444

3. now do a Quick Search on the following ...

TOM111

TOM222

TOM333

TOM444

TOM111 TOM222

TOM333 TOM444

... the case as expected will be returned. 

4. now do a quick search on the following ...

TOM111 TOM333

TOM222 TOM444

... the case wlll NOT be returned

When you look at the JQL generated, it is text~ "TOM111 TOM333" when ideally text~"TOM111" and text~"TOM333" would be generated.

Tom Lister
Community Champion
February 4, 2019

Hi

the first six scenarios will all succeed as exact matches for the whole string entered

for your last two cases try

TOM111 OR TOM333

and

TOM222 OR TOM444

the uppercase OR is significant and will be recognised by the quick search

Reuben Barclay February 4, 2019

that will return cases that have TOM111 in them, or cases that have TOM333 in them.  I want to return cases that have both TOM111 and TOM333 in them.  Just like if I was doing a Google search and typed TOM111 TOM333 I would get Web pages that had TOM111 and TOM333 in them.  

I can do what I want by typing text~"TOM111" and text~"TOM333" into a Basic Search. I don't see a way of generating that JQL via Quick Search

Tom Lister
Community Champion
February 4, 2019

You could try the mandatory operator +

+TOM111 +TOM333

or use the AND operator

But the gotcha here is that the quick search is applied to each “document” and a document is a text field.

maybe a feature request to Atlassian

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events