-
Bug
-
Resolution: Fixed
-
High
-
51
-
Severity 3 - Minor
-
11
-
Summary
Jira creates tokens when searching for text fields.
For a case like A-B-C Jira can create three different tokens or Jira can keep these three words as only one token. The same behavior happens for the pattern A-B, where sometimes creates two separated tokens and other times creates only one token.
Since Jira will try to match the words used on the JQL with each token, and Jira can create tokens differently in each case, that's the reason why sometimes a JQL works for one case but not for another case.
Update (April 26, 2021)
Any custom Text Type custom field also is affected.
Update (April 3, 2020)
Summary search is affected as well.
Searching for !~ is also impacted:
- Issues with summary: something, test - test, test;
JQL Result summary !~ "test - test" returns all issues summary !~ "test"
Environment
- JIRA Cloud
Steps to Reproduce
- Create New project
- Create test tickets
- Description: release-abc
- Go to issue navigator: https://<EXAMPLE>.atlassian.net/issues/?jql=
- Conduct the following test using Advance JQL
JQL | Result |
---|---|
description ~ "release-abc" | |
description ~ "-abc | |
description ~ "abc" | |
description ~ "release" | |
description ~ "release-" |
= Issue not found
= Issue found
Expected Results
- Find issues with description matching the JQL
Actual Results
- Two scenarios where results did not populate correctly
Notes
- Quick Search also displays same results:
- https://<EXAMPLE>.atlassian.net/secure/QuickSearch.jspa?searchString=release-abc >
Workaround
- Using specific text search might work for some cases:
- summary ~ "\"test - test\""
- summary !~ "\"test - test \""
It does seem inconsistent sometimes even with an exact search.
- Also changing the Indexing Language under System Settings to English - Moderate Stemming seem to help.
- is related to
-
JRACLOUD-67019 Strange behavior with Contains operator when Text is separated from Number with an Underscore
- Closed
-
JRACLOUD-31882 Inconsistent behavior with contains operator
- Gathering Interest
- relates to
-
JRACLOUD-69483 Searching for texts with a space before a hyphen does not work
- Closed
-
JRACLOUD-72794 Searching for text using quotation marks doesn't return the exact phrase
- Closed
-
JRACLOUD-73342 JQL search is treating the letter a as a wildcard
- Closed
-
JRACLOUD-78739 Searching for an issue with hyphen/underscore in its summary does not provide accurate result while linking an issue
- Closed
- mentioned in
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...