Uploaded image for project: 'Jira Server and Data Center'
  1. Jira Server and Data Center
  2. JRASERVER-6218

Allow searching for part of a word (prefix / substring searches)

    XMLWordPrintable

    Details

    • UIS:
      284
    • Support reference count:
      49
    • Feedback Policy:
      We collect Jira feedback from various sources, and we evaluate what we've collected when planning our product roadmap. To understand how this piece of feedback will be reviewed, see our Implementation of New Features Policy.
    • Current Status:
      Hide
      Atlassian Update – 26 September 2019

      Prefix search

      All Jira 8 versions are capable of prefix searches

      text ~ "work*"

      Suffix search

      Starting with version 8.6.0, Jira will be able to perform suffix search as well:

      text ~ "*box"

      Regex search

      There are no plans to support regex search in the foreseeable future.

       

      Kamil Cichy
      Software Developer, Jira Server and Data Center

      Show
      Atlassian Update – 26 September 2019 Prefix search All Jira 8 versions are capable of prefix searches text ~ "work*" Suffix search Starting with version 8.6.0, Jira will be able to perform suffix search as well: text ~ "*box" Regex search There are no plans to support regex search in the foreseeable future.   Kamil Cichy Software Developer, Jira Server and Data Center

      Description

      Lucene doesn't support prefix search.

      We have created some issues with following titles:

      • "ComponentComboBox"
      • "TableComboBox"
      • "DateComboBox"
      • "JXComboBox"

      these words also occur in attached commented and file attachments with java source code
      In our projects we need to search for the word "ComboBox" or "Box" or just "box", but it does not retrieve the issues mentioned above.

      Is it possible to extend JIRA search capabiltiy with a simple search plugin, which returns results like String's indexOf ? Of course, this will result in neg. performance issues.
      But I think, this way of searching is practical for us, when searching for more abstract words / partialparts of words in jira/confluence.

      Cause

      We use lucene as for our search engine. I did some research and it looks like Lucene starting at version 2.1 does support leading wild cards. You can see here via Apache's FAQ. We don't currently use this function. As you can see even Apache mentions it's an expensive operation.

      Work Around

      We recommend Script Runner a third party add on (Add is no longer free) . Script Runner really beefs up JQL as you can use regex with script runner.

      For example: issueFunction in issueFieldMatch("project = JRA", "description", "ABC\\d{4}").  

      See more on IssueFieldMatch here.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned
              Reporter:
              asdq Steve Varghese
              Votes:
              305 Vote for this issue
              Watchers:
              222 Start watching this issue

                Dates

                Created:
                Updated: