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

Adding '#' '&' '+' into More -> Link -> Advanced Search causes invalid JQL error.

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Low
    • None
    • 8.5.3, 8.11.0
    • JQL
    • None

    Description

      Issue Summary

      Adding '#' '&' '+' into More -> Link -> Advanced Search causes invalid JQL error.

      Steps to Reproduce

      1. Add a label to an issue such as "Label_1&2_test", "Label_1#2_test" or "Label_1+2_test"
      2. On another issue click More -> Link
      3. Click 'Search for an Issue'
      4. Click 'Advanced Search"
      5. type one of the below JQL:
        1. labels = "Label_1&2_test"
        2. labels = "Label_1#2_test"
        3. labels = "Label_1+2_test"

      I tested this specifically with labels, but other features may also be impacted. Removing the '#' '&' '+' character will allow the JQL to run.

      Expected Results

      A list of issues

      Actual Results

      Invalid JQL error.

      Workaround

      1. Avoid using these characters for searching on this screen where possible.

      2. When Searching for projects with special characters on their names, search with the Project key instead.

      3. If unable to avoid special characters, check what is the special character equivalent in the %# format, to use it instead. Steps:

      1. Go to Search > Search for an issue and run the JQL
      2. The URL will convert the special characters into a "%" followed by two hexadecimal digits.
        In this case, "&"converts to "%26"
      3. Use the converted character to search on the Issue Link advanced search, using the in clause.
        project in ("Victoria %26 Charlie")

      You may use the search URL as a reference for special character conversion, or refer to the HTML URL Encoding Reference page.

      Attachments

        Activity

          People

            Unassigned Unassigned
            bnoble@atlassian.com Bryce Noble
            Votes:
            1 Vote for this issue
            Watchers:
            8 Start watching this issue

            Dates

              Created:
              Updated: