I am trying to use the ~ operator with text as per https://confluence.atlassian.com/jiracorecloud/advanced-searching-fields-reference-765593716.html#Advancedsearching-fieldsreference-textTextText to search for issues which have 'xyz' or 'xyz*' in their Summary, Description and/ or Comments fields.
The search string looks as below, but the results are excluding issues where xyz appears in
the Summary field. Any idea what I may be doing wrong?
text ~ xyz
Version: JIRA v7.10.2
JIRA Service Desk Application v3.13.2 (License Information for JIRA Plugins)
Hi,
The summary field is a separate field from which you can search.
Therefore, your JQL may look like this:
text ~ xyz OR summary ~ xyz
Hi Maksim,
Thank you for your reply, however the Atlassian Help page I referenced above explicitly states that -
This is a "master-field" that allows you to search all text fields, i.e.:
Given this, I am at a loss to understand why a text ~ search will not retrieve those records which have xyz or xyz* values in their Summary.
Is the Help link outdated? I did not find a date on Atlassian's Help pages so have no way of knowing if the Help documentation is current or not. I can explicitly search for the text in the Summary field, but now, I do not know if the text ~ works on the other 3 text fields above as well, necessitating a search in each of them which would be rather cumbersome.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You're right. The query text ~ xyz should search the summary field.
Did I understand correctly that the query summary ~ xyz returns issues that text ~ xyz cannot return?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Maksim,
Thank you for your prompt reply again.
I just checked, Summary ~ xyz is ALSO NOT retrieving the record where xyz123 is a word in the Summary. Now I am really not sure how to proceed.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Try do a re-index jira.
Just try one project reindex(In which is issue with xyz123 summary).
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
So, on further investigation, it appears the issue has to do with the usage (or not) of the wildcard * character. Changing the original search text to
text ~ "xyz*"
works. As does:
Summary ~ "xyz*"
..if anyone were to want to search for issues containing xyz123 in the Summary, Description, Environment, Comments fields OR just in Summary, respectively.
It is STILL not clear, however, why just using
text ~ xyz
did not work. After all, what then is the use of '~' (or it's difference from '=', if an additional wildcard STILL needs to be used in the search string)?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
So, on further investigation, it appears the issue has to do with the usage (or not) of the wildcard * character. Changing the original search text to
text ~ "xyz*"
works. As does:
Summary ~ "xyz*"
..if anyone were to want to search for issues containing xyz123 in the Summary, Description, Environment, Comments fields OR just in Summary, respectively.
It is STILL not clear, however, why just using
text ~ xyz
did not work. After all, what then is the use of '~' (or it's difference from '=', if an additional wildcard STILL needs to be used in the search string)?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Without a wildcard, ~ looks for whole words within a field. The difference between ~ and = is that ~ matches if the word appears in the field, whereas = requires that the field match exactly. Then, further, as you've found, you can use the wildcard to match partial words.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.