Skip to content
Report · CRM

Support cases by status and age

Open support cases by status and priority, split by how long they have been open.

  • support
  • backlog
  • drill-through
Sample preview, fictional dataYour own figures appear after import.

01

About this report

Every active case whose status is not in a closed stage, grouped by status and priority. Cases are counted by days since the case started, in the bands 0-2 days, 3-7, 8-30 and over 30, with the total.

Click Open cases to open Open support cases filtered to that status and priority. Review the Over 30 days column weekly.

02

Sample preview

Fictional figures in the shape you will see. Yours come from your account.

StatusPriority0-2 days3-7 days8-30 daysOver 30 daysOpen cases
In ProgressMedium694120
Not StartedHigh31004
EscalatedHigh02114
Re-OpenedLow00235

03

The SuiteQL

This is the query each report runs. Read it, copy it, or change it after import.

Support cases by status and age
SELECT x.status,
       x.priority,
       SUM(CASE WHEN x.age <= 2 THEN 1 ELSE 0 END) AS age_0_2,
       SUM(CASE WHEN x.age BETWEEN 3 AND 7 THEN 1 ELSE 0 END) AS age_3_7,
       SUM(CASE WHEN x.age BETWEEN 8 AND 30 THEN 1 ELSE 0 END) AS age_8_30,
       SUM(CASE WHEN x.age > 30 THEN 1 ELSE 0 END) AS age_over_30,
       COUNT(*) AS open_cases
  FROM (SELECT NVL(BUILTIN.DF(sc.status), '(none)') AS status,
               NVL(BUILTIN.DF(sc.priority), '(none)') AS priority,
               TRUNC(SYSDATE) - TRUNC(sc.startdate) AS age
          FROM supportcase sc
          JOIN supportcasestatus s ON s.id = sc.status
         WHERE s.stage <> 'CLOSED'
           AND sc.isinactive = 'F') x
 GROUP BY x.status, x.priority
 ORDER BY open_cases DESC
Open support cases
SELECT sc.id AS case__id,
       sc.casenumber AS case_number,
       sc.title AS subject,
       BUILTIN.DF(sc.company) AS company,
       NVL(BUILTIN.DF(sc.status), '(none)') AS status,
       NVL(BUILTIN.DF(sc.priority), '(none)') AS priority,
       BUILTIN.DF(sc.assigned) AS assigned_to,
       BUILTIN.DF(sc.origin) AS origin,
       TO_CHAR(sc.startdate, 'YYYY-MM-DD') AS start_date,
       TRUNC(SYSDATE) - TRUNC(sc.startdate) AS days_open,
       TO_CHAR(sc.lastmodifieddate, 'YYYY-MM-DD') AS last_modified
  FROM supportcase sc
  JOIN supportcasestatus s ON s.id = sc.status
 WHERE s.stage <> 'CLOSED'
   AND sc.isinactive = 'F'
 ORDER BY sc.startdate

04

Appears in

ReportCRM

Support cases by status and age

Screenshot of the Support cases by status and age report in HiScale Advanced Reports, filled with fictional sample data
Sample preview, fictional dataOpen image full size (opens in a new tab)