Allow JIRA search patterns to start with a leading star

XMLWordPrintable

    • Type: Suggestion
    • Resolution: Duplicate
    • None
    • Component/s: JQL

      NOTE: This suggestion is for JIRA Server. Using JIRA Cloud? See the corresponding suggestion.

      Lucene has supported queries that start with a * since before 2.0 (http://wiki.apache.org/lucene-java/LuceneFAQ). Being able to seach for "*foo" is really useful and something that often trips people up with JQL.

      It seems from checking the code that all that may be required is changing one method?

      [mdoar atlassian-jira-enterprise-source]$ find .-name *.java -print0 | xargs -0 grep setAllowLeadingWildcard
      ./atlassian-jira-5.0-m4-source/jira-project/jira-components/jira-core/src/main/java/com/atlassian/jira/sharing/index/QueryBuilder.java:        parser.setAllowLeadingWildcard(false);
      

            Assignee:
            Unassigned
            Reporter:
            MattS
            Votes:
            2 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: