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

Searching for JIRA issues containing special characters (in text fields), using escaped special character syntax for JAVA SOURCE does not work

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Medium
    • 5.0.1
    • None
    • JQL

    Description

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

      When an error escaping in JIRA JQL is made the following error comes up:

      Error in the JQL Query: '\$' is an illegal JQL escape sequence. The valid escape sequences are \', \", \t, \n, \r,
      , '\ ' and \uXXXX. (line 1, character 16)

      The \uXXXX refers to escaping JAVA source, however, it's been found that this does not work.

      There are multiple examples of this, but let's take the special character "\".

      I can create an issue with the summary:

      foo\
      

      Then do a search for it using the JAVA sauce:

      summary ~ "foo\u005C"
      

      JIRA will return the following error:

      Unable to parse the text 'foo\' for field 'summary'.

      This only seems to happen when the special character is at the end of the line.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              mandreacchio Michael Andreacchio
              Votes:
              3 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated: