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

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

    • 295
    • 49
    • 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
    • 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.

      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.

          Form Name

            [JRASERVER-6218] Allow searching for part of a word (prefix / substring searches)

            SDelgado added a comment -

            Commenting on this to hopefully bring attention to this and potentially allow Atlassian to reconsider. This is a basic function that similar, less complex tools have implemented and it should be something that is allowed in Jira without having to using Script Runner. Please reconsider opening this to make this simple, basic fix.

            SDelgado added a comment - Commenting on this to hopefully bring attention to this and potentially allow Atlassian to reconsider. This is a basic function that similar, less complex tools have implemented and it should be something that is allowed in Jira without having to using Script Runner. Please reconsider opening this to make this simple, basic fix.

            6c42cd3a07e9,
            You can search for example for key = JRASERVER-6218 and comment ~ "*irst *ildcard *haracter". Did you mean this or something else?

            Kamil Cichy (Inactive) added a comment - 6c42cd3a07e9 , You can search for example for key = JRASERVER-6218 and comment ~ "*irst *ildcard *haracter" . Did you mean this or something else?

            It would be great to be able to use suffix (first wildcard character). Any updates on getting this functionality?

            Aleksandra Leesment added a comment - It would be great to be able to use suffix (first wildcard character). Any updates on getting this functionality?

            It still doesn't work for Jira cloud so no use to us and the ticket has been closed as "Won't fix" so possibly never .

            https://jira.atlassian.com/browse/JRACLOUD-6218

             

            James Bewley added a comment - It still doesn't work for Jira cloud so no use to us and the ticket has been closed as "Won't fix" so possibly never . https://jira.atlassian.com/browse/JRACLOUD-6218  

            zpgbyv6a added a comment - - edited

            Wow, my issue resolved after ten years!

            That's the real businessvalue: Finding issues!

            It really works:
            https://jira.atlassian.com/browse/JRACLOUD-6218?jql=text%20~%20%22J*Combo*Box%22

            zpgbyv6a added a comment - - edited Wow, my issue resolved after ten years! That's the real businessvalue: Finding issues! It really works: https://jira.atlassian.com/browse/JRACLOUD-6218?jql=text%20~%20%22J*Combo*Box%22

            wesley94,

            Good spot. The "affects-cloud" is an old label that was used when we had only one project: JRA. Now that we have JRASERVER and JRACLOUD, it is redundant. I cleared this label.

            The corresponding cloud issue is JRACLOUD-6218. I can see it's been resolved as "Won't fix", so it's not going to be applied to the cloud version.

            Kamil Cichy (Inactive) added a comment - wesley94 , Good spot. The "affects-cloud" is an old label that was used when we had only one project: JRA. Now that we have JRASERVER and JRACLOUD, it is redundant. I cleared this label. The corresponding cloud issue is JRACLOUD-6218 . I can see it's been resolved as "Won't fix", so it's not going to be applied to the cloud version.

            Is this going to be applied to the cloud version? The labels show affects-cloud.

            Wesley Caldwell added a comment - Is this going to be applied to the cloud version? The labels show affects-cloud.

            46f39a6039b9,
            please see the "Status" and "Fixed in Version/s" fields.

            Kamil Cichy (Inactive) added a comment - 46f39a6039b9 , please see the "Status" and "Fixed in Version/s" fields.

            Has this been resolved? We are still experiencing it until now!!

            Abraham Toribio added a comment - Has this been resolved? We are still experiencing it until now!!

            created 14 years ago. The government moves faster than this.

            The part i don't understand is why some of the employees haven't left to create a start up in competition to them.

            Simple things like searching and custom URL's are standard now days.

            As a company we have invested time into Jira and so i'll be hanging around for now, but i keep searching. 

            But if anyone at Atlassian reads these msgs and actually cares. It is my advise to take easy small win items and make them a bit more of a priority before someone else does. 

            Wesley Caldwell added a comment - created 14 years ago. The government moves faster than this. The part i don't understand is why some of the employees haven't left to create a start up in competition to them. Simple things like searching and custom URL's are standard now days. As a company we have invested time into Jira and so i'll be hanging around for now, but i keep searching.  But if anyone at Atlassian reads these msgs and actually cares. It is my advise to take easy small win items and make them a bit more of a priority before someone else does. 

              Unassigned Unassigned
              44daf0d7925d Steve Varghese
              Votes:
              313 Vote for this issue
              Watchers:
              234 Start watching this issue

                Created:
                Updated:
                Resolved: