Using the ~ (CONTAINS) operator in Advanced Search via JQL that includes a hyphen(-) character returns more results than expected

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: Low
    • 11.3.7
    • Affects Version/s: 11.2.1, 11.3.6
    • Component/s: JQL Search
    • None
    • 11.02
    • 3
    • Severity 3 - Minor
    • 7

      Issue Summary

      Using the ~ (CONTAINS) operator in Advanced Search via JQL that includes a hyphen(-) character returns more results than expected.

      Steps to Reproduce

      1. Create Jira issues with the following summary:
        1. abc-def
        2. abc
        3. def
      2. Search using this JQL
        summary ~ "abc-def"
        

      Expected Results

      Search result should return 1 issue.

      Actual Results

      Search result returns 3 results.

      Workaround

      When constructing new JQL queries, add escaped quotes to the search text, for example:

      summary ~ "\"abc-def\""
      

      Escaped quotes are not automatically added in previously saved JQL queries, which can lead to different search results if Jira has been recently upgraded.

              Assignee:
              Unassigned
              Reporter:
              Moga
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: