Search discrepancy with summary and description fields

Here is the issue I’m seeing:

If I search two words (or more) and tell JIRA to check the summary and description, I’m not getting results I expect. If I search for the words “up” and “down” , if the word “up” is in the summary and the word “down” is in the description, it won’t return the issue. It will only return an issue if “up” and “down” are both in either the summary or the description.

In theory I can do an advance search to cover the four combinations of results. This is an extremely messy solution however and if I want to search three words, I then need 9 different combinations, and so on.

Ideally what I’d like to do is concatenate the description and summary then search that one field for the two words. I however have been unable to find any way to do that in an advanced search, not sure if it is possible or not.

Thanks,

2 answers

Does your JQL look like this?

summary ~ "up down" OR description ~ "up down"

That is what mine looked like when I type up down into the simple search box, then clicked to the 'advanced' tab. This should return the results that you ahve stated, and in a cursory glance on our onDemand install it looks like it does.

Looks like my problem was in the explanation.

I only want a result where “up” AND “down” are included.

The query sent was an OR. It will return up or down, which isn’t what I’m trying to do.

Here is what my JQL looks like:

(summary ~ "up AND down" OR description ~ "up AND down")

Just looking at the JQL I can see where the problem is. It will find (up AND down in the summary) OR (up AND down in the description). It will not find up in the summary AND down in the description, that would evaluate as false based on the JQL

You are going to want to use this type of JQL to be more explicit:

(summary ~ "up" AND summary ~ "down") OR (description ~ "up AND description ~ "down")

Hello Tor,

Thanks for the reply, however that will only give me a result where both words occur in the summary or both words occur in the description.

What I want is a query (without making a matrix) that will return results where one of the words is in the description and the other word is in the summary.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Nov 27, 2018 in Portfolio for Jira

Introducing a new planning experience in Portfolio for Jira (Server/DC)

In the past, Portfolio for Jira required a high degree of detail–foresight that was unrealistic for many businesses to   have–in   order to produce a reliable long-term roadmap. We're tur...

2,495 views 15 20
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you