Reference build
Support reporting on Frappe Insights
A synthetic support dashboard on Frappe Insights: one reviewed query, a governed table, and a dashboard built from Dream Company data.
Problem. Support numbers lived in exports and screenshots, with no agreed definition of a ticket status or a shared view for the team.
Lab build. This is a reference dashboard on the Dream Company synthetic site. The ticket data is fictional. It is not a client engagement.
The problem
The support team could produce a ticket count, but not the same count twice. One export included closed tickets, another excluded them, and a screenshot in a meeting had no date on it. Nobody could tell whether the number was current or which definition it used.
The objective was narrow: one reviewed query, one dashboard, one definition of each status.
Scope
The lab build covers:
- A connection to the site database.
- One native query that groups support tickets by status.
- A reviewed dashboard with a table widget and a title.
- A definition for the status values, taken from the Helpdesk configuration.
- A screenshot of the result from the synthetic site.
Out of scope: scheduled email delivery, external database sources, a full metric dictionary, and per-team row-level permissions.
Architecture
Frappe Helpdesk (Dream Company site)
│
└── HD Ticket table
│
└── Insights Query QRY-0010
│
└── Insights Dashboard DSH-0011
Insights reads the operational table directly. There is no export step and no second copy to reconcile.
Key workflows
Connect the data source
The built-in Site DB data source points at the same MariaDB database as the site. The connection is tested before any query is written.
Write and review the query
The query is deliberately small:
select status, count(*) as tickets
from `tabHD Ticket`
group by status
order by tickets desc
It is saved with a title, a data source, and a visible result. The status values come from the Helpdesk configuration, so the dashboard and the queue use the same vocabulary.
Build the dashboard
The dashboard contains a table widget with the query attached, a title, and the two columns that matter. Layout is secondary; the definition and the query are the deliverable.
Verify the number
The query returns four rows for the synthetic site: Open, Replied, Resolved, and Closed. The total matches the Helpdesk list. That check is part of the build, not an afterthought.
What was actually hard
The site data source connection. The installed Insights version passes ssl=False into a SQLAlchemy URI as a string, which effectively enables SSL and fails certificate verification against the local MariaDB. The local lab needed a small patch to pass ssl_disabled=True through the connection arguments. The patch and backups are kept in the lab folder.
The default chart. Creating a query creates a default chart with no type or options, which renders as an invalid widget on a dashboard. The chart type and columns have to be set explicitly before the widget is useful.
The definition. “Open” means different things to an agent and a manager. The dashboard is only trusted once the status definitions are written down and agreed.
What this build does not cover
- No scheduled email or PDF delivery.
- No external data source or warehouse.
- No row-level permissions by team.
- No trend over time; this is a current-state table.
Those are separate increments. The current build proves the data source, the query, the dashboard, and the verification step.
What I would do differently
Write the metric dictionary before opening the query editor. The SQL is easy once the definition is agreed. The hard part is getting the support lead, the manager, and finance to agree on what a closed ticket means.
Outcome. A reviewed Insights query and a dashboard that shows tickets by status from the same Helpdesk data the team works in.
Screenshots from Dream Company
Captured from the bworkx synthetic demo site. All names, emails, phone numbers, and records are fictional.
