Uploaded image for project: 'Jira Software Data Center'
  1. Jira Software Data Center
  2. JSWSERVER-16705

"Looking for an older issue?" function in agile boards cuts off query after a "&"

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Low
    • None
    • 7.9.2, 7.11.0, 7.12.3
    • AgileBoard

    Description

      Summary

      On an agile board that's based on a saved filter, if the filter query contains '&' character, the part of the query including and after & character is omitted when you click on "Looking for an older issue?" link, hence the query is malformed and causes an error.

      Environment

      Jira Software 7.9.2 and 7.11.0 (these versions tested)

      Steps to Reproduce

      1. Install Jira Software 7.9.2/7.11.0
      2. Create an new Kanban software development project BUGTRACK, with key BUGTRACK
      3. Create an issue, Summary: Test, Labels: Charlie&Angels
      4. Create a filter, Name: Filter1, JQL: labels in ("Charlie&Angels")
      5. Create a Kanban board, Name: Board1, selecting create Board from an existing Saved Filter, and select Filter1 as the filter
      6. Open Board1, click on "Looking for an older issue?" link on Done column

      Expected Results

      a query results view with JQL (this JQL is indicated when you hover above the older issues link)

      {{labels in ("Charlie&Angels") AND (fixVersion in unreleasedVersions() OR fixVersion is EMPTY) AND status = "10002" AND NOT (updated >= -2w OR statusCategory != Done) }}

      Actual Results

      a query results view with JQL

      labels in ("Charlie

      And error message
      Error in the JQL Query: The quoted string 'Charlie' has not been completed. (line 1, character 12)

      Notes

      The field need not be Label, any other field with a text content (i.e.) component can be used to generate same effect.

      i.e.

      1. add a component 'Research & Development' to BUGTRACK project
      2. Edit BUGTRACK-1 issue previously created, select "Research & Development" as component and save
      3. Create a filter for JQL component = "Research & Development", and a Kanban board based on this filter.
        Error is the same, JQL is trimmed from '&' character again as below

      component = "Research
      Error in the JQL Query: The quoted string 'Research ' has not been completed. (line 1, character 13)
      (Optional - If Necessary)

      Workaround

      replacing '&' character with 'and', so that no & character exists in text component

      Attachments

        1. error_message.png
          error_message.png
          233 kB
        2. filter.png
          filter.png
          97 kB
        3. looking_for_an_older_issue.png
          looking_for_an_older_issue.png
          103 kB

        Issue Links

          Activity

            People

              Unassigned Unassigned
              keroglu Kurtcebe Eroglu
              Votes:
              11 Vote for this issue
              Watchers:
              13 Start watching this issue

              Dates

                Created:
                Updated: