Uploaded image for project: 'Jira Data Center'
  1. Jira Data Center
  2. JRASERVER-62705

Issue search for words including hyphen "-" in a text field

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Low
    • None
    • 7.2.2, 8.20.15, 9.4.4, 9.4.6, 9.4.7
    • JQL

    Description

      Summary

      Some issues whose summaries include words with hyphen "-" didn't hit correctly when searching them.

      Steps to Reproduce

      1. Create the three issues with the following summaries in a project
        • "foo-bar"
        • "foo-123"
      2. Search the above issues with following JQL
        • project = "PROJECTNAME" and summary ~ "bar"
        • project = "PROJECTNAME" and summary ~ "123"

      Expected Results

      The issue "foo-123" should be hit with the JQL project = "PROJECTNAME" and summary ~ "123" as "foo-bar" was hit with project = "PROJECTNAME" and summary ~ "bar".

      Actual Results

      No issue was hit with the JQL project = "PROJECTNAME" and summary ~ "123".

      As this doc said,

      Whole words only
      JIRA cannot search for issues containing parts of words but on whole words only. The exception to this are words which are stemmed.
      This limitation can also be overcome using fuzzy searches.

      JQL allows us to search only whole words. When it comes to "foo-bar", the each of "foo" and "bar" is handled as a whole word.
      On the other hand, "foo-123" seems to be handled as only one "whole word" and we can't search for "foo" and "123".

      Workaround

      No workaround at this moment.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              yokamoto Yuki Okamoto (Inactive)
              Votes:
              49 Vote for this issue
              Watchers:
              41 Start watching this issue

              Dates

                Created:
                Updated: