Uploaded image for project: 'Jira Service Management Data Center'
  1. Jira Service Management Data Center
  2. JSDSERVER-4322

JIRA filter for a queue that has an uncaught exception breaks Queues view

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

      Summary

      It is possible to saved a broken filter to a queue when the JQL query returns an uncaught exception. This causes the Queues view to display no queues and prevent the creation of new queues.

      Steps to Reproduce

      1. Create a queue with a valid filter. e.g: resolution = Unresolved
      2. Edit the queue
      3. Change to resolution > Unresolved
      4. Save queue

      Expected Results

      The queue is not saved and a message is displayed indicating the the JQL filter is invalid.

      Actual Results

      The screen doesn't change as if the "Save" didn't work but the filter was saved in the background.
      Loading the queues again shows no queues.

      Notes:

      The problem is actually caused by an Uncaught exception returned by JIRA when searching resolution < unresolved but JIRA Service Desk could prevent the JQL to be saved in these scenarios. JSD correctly prevents the saving a JQL that is invalid if it doesn't error.

      Workaround

      Find the queues on the project:

      SELECT * from "AO_54307E_QUEUE" where "PROJECT_ID" in (select id from project where pkey = '<PKEY>');
      

      Find the filter that is broken by searching JIRA using the same JQL
      Update the queue in the database to a working JQL.

          Form Name

            [JSDSERVER-4322] JIRA filter for a queue that has an uncaught exception breaks Queues view

            Mateo made changes -
            Remote Link Original: This issue links to "JSDS-90 (JIRA Server)" [ 231763 ] New: This issue links to "JSMDC-90 (JIRA Server (Bulldog))" [ 231763 ]
            Julien Rey made changes -
            Remote Link New: This issue links to "Page (Atlassian Documentation)" [ 563777 ]
            Owen made changes -
            Workflow Original: JSD Bug Workflow v5 - TEMP [ 2304744 ] New: JAC Bug Workflow v3 [ 3126114 ]
            Status Original: Done [ 10044 ] New: Closed [ 6 ]
            Owen made changes -
            Symptom Severity Original: Critical [ 14430 ] New: Severity 1 - Critical [ 15830 ]
            Katherine Yabut made changes -
            Workflow Original: JSD Bug Workflow v5 [ 2058686 ] New: JSD Bug Workflow v5 - TEMP [ 2304744 ]
            Katherine Yabut made changes -
            Workflow Original: JSD Bug Workflow v5 - TEMP [ 2056720 ] New: JSD Bug Workflow v5 [ 2058686 ]
            Katherine Yabut made changes -
            Workflow Original: JSD Bug Workflow v5 [ 1956478 ] New: JSD Bug Workflow v5 - TEMP [ 2056720 ]
            Katherine Yabut made changes -
            Workflow Original: JSD Bug Workflow v4 [ 1615952 ] New: JSD Bug Workflow v5 [ 1956478 ]
            jonah (Inactive) made changes -
            Description Original: h3. Summary
            It is possible to saved a broken filter to a queue when the JQL query returns an uncaught exception. This causes the Queues view to display no queues and prevent the creation of new queues.

            h3. Steps to Reproduce
            # Create a queue with a valid filter. e.g: {{resolution = Unresolved}}
            # Edit the queue
            # Change to {{resolution > Unresolved}}
            # Save queue

            h3. Expected Results
            The queue is not saved and a message is displayed indicating the the JQL filter is invalid.

            h3. Actual Results
            The screen doesn't change as if the "Save" didn't work but the filter was saved in the background.
            Loading the queues again shows no queues.

            h3. Notes:
            The problem is actually caused by an Uncaught exception returned by JIRA when searching {{resolution < unresolved}} but JIRA Service Desk could prevent the JQL to be saved in these scenarios. JSD correctly prevents the saving a JQL that is invalid if it doesn't error.

            h3.Workaround
            Find the queues on the project:
            {noformat}
            SELECT * from "AO_54307E_QUEUE" where "PROJECT_ID" in (select id from project where pkey = '<PKEY>');
            {noformat}
            Find the filter that is broken by searching JIRA using the same JQL
            Update the queue in the database to a working JQL.

            New: {panel:bgColor=#e7f4fa}
              *NOTE:* This bug report is for *JIRA Service Desk Server*. Using *JIRA Service Desk Cloud*? [See the corresponding bug report|http://jira.atlassian.com/browse/JSDCLOUD-4322].
              {panel}

            h3. Summary
            It is possible to saved a broken filter to a queue when the JQL query returns an uncaught exception. This causes the Queues view to display no queues and prevent the creation of new queues.

            h3. Steps to Reproduce
            # Create a queue with a valid filter. e.g: {{resolution = Unresolved}}
            # Edit the queue
            # Change to {{resolution > Unresolved}}
            # Save queue

            h3. Expected Results
            The queue is not saved and a message is displayed indicating the the JQL filter is invalid.

            h3. Actual Results
            The screen doesn't change as if the "Save" didn't work but the filter was saved in the background.
            Loading the queues again shows no queues.

            h3. Notes:
            The problem is actually caused by an Uncaught exception returned by JIRA when searching {{resolution < unresolved}} but JIRA Service Desk could prevent the JQL to be saved in these scenarios. JSD correctly prevents the saving a JQL that is invalid if it doesn't error.

            h3.Workaround
            Find the queues on the project:
            {noformat}
            SELECT * from "AO_54307E_QUEUE" where "PROJECT_ID" in (select id from project where pkey = '<PKEY>');
            {noformat}
            Find the filter that is broken by searching JIRA using the same JQL
            Update the queue in the database to a working JQL.

            jonah (Inactive) made changes -
            Link New: This issue relates to JSDCLOUD-4322 [ JSDCLOUD-4322 ]

              lgoodhewcook Lachlan G (Inactive)
              mfernandezbadii Mauro Badii (Inactive)
              Affected customers:
              0 This affects my team
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: