Introducing a new way to review your PRs.

Read the announcement

frappe / helpdesk

Modern, Streamlined, Free and Open Source Customer Service Software

View on GitHub

20 documents · Updated Nov 23, 2026

docs / dashboards-and-ticket-analytics

Dashboards and ticket analytics

Dashboards and ticket analytics turn ticket work into views of current workload, service speed, customer feedback, and SLA performance. The agent home helps each agent choose what to act on next, while shared dashboards and ticket views help agents and managers understand results over a date range.

The page relates to service operations, work routing and SLAs, and ticket management.

Agent home

The agent home is a personal work surface for an agent. It combines action lists with small performance charts, and it lets the agent arrange the cards to fit their work pattern.

Personal dashboard layout

The personal dashboard loads a saved layout for the signed-in agent. If no layout exists, it starts with a default set of cards. An agent can add or remove cards, move them, reset the layout, and save the result for later visits. An empty layout shows a clear starting state instead of an empty chart area.

The available cards cover these needs:

NeedView
Work volumeMy Tickets
Response and resolution speedAverage first response, average resolution, and combined time metrics
Work that needs attentionSLA alerts, pending tickets, and recently assigned tickets
Customer signalReviews
Personal historyMy Recent Activity

The dashboard loads each card from the matching agent-home data service. This keeps the layout personal while keeping the meaning of each metric consistent. Refresh reloads the card data without changing the saved layout.

References: desk/…/Home.vue• L64-137 desk/…/Home.vue• L198-287 desk/…/Home.vue• L289-379 desk/…/Home.vue• L411-447 helpdesk/…/agent_home.py• L20-54

Agent performance cards

The performance cards show an agent's ticket volume, speed, and customer feedback. My Tickets presents a total with a short trend for a selected period. The time cards compare first response and resolution averages over three months, six months, one year, or a custom range.

Reviews adds a customer view to the time measures. It shows the average rating, rating distribution, and recent review text. An agent can limit reviews by period and place positive or negative reviews first. These controls let the agent move from a summary signal to the specific ticket and feedback that produced it.

References: desk/…/AgentTicketsCard.vue• L30-57 desk/…/AvgTimeMetrics.vue• L165-235 desk/…/AvgTimeMetrics.vue• L238-259 desk/…/RecentFeedback.vue• L30-78 desk/…/RecentFeedback.vue• L346-452 desk/…/RecentFeedback.vue• L454-489

Work attention cards

The pending-ticket card is an action queue, not only a count. Its tabs show tickets that approach or breach an SLA, tickets assigned in the last seven days, and open tickets that await an agent response. Each row gives enough context to open the ticket, including its status, priority, team, and reason for attention.

The recent-activity card shows the agent's latest meaningful action on each ticket. It joins replies, comments, ticket updates, views, and assignments into one latest-per-ticket list. Automated SLA changes do not appear as agent work in this view. Empty and loading states make the difference between no recent work and data that has not loaded clear.

References: desk/…/PendingTickets.vue• L14-157 desk/…/PendingTickets.vue• L208-257 helpdesk/…/agent_home.py• L420-586 desk/…/RecentActivity.vue• L14-70 desk/…/RecentActivity.vue• L85-145 helpdesk/…/agent_home.py• L589-703

Operational dashboard

The operational dashboard gives a filtered view of ticket performance for an organization or one agent. Managers can switch between organization results and their own results. Other agents see their own results only.

Dashboard scope and filters

The dashboard uses a date range as its main scope. Presets cover today and recent seven-, thirty-, sixty-, and ninety-day windows. A custom range can replace a preset. Managers can also filter by team or agent, while the agent view fixes the agent scope to the signed-in user.

Changing the date, team, agent, or manager view reloads the dashboard data. Team selection also limits the agents available for the agent filter, so the filters describe one consistent slice of ticket work.

References: desk/…/Dashboard.vue• L17-91 desk/…/Dashboard.vue• L357-475 desk/…/Dashboard.vue• L515-648 helpdesk/…/dashboard.py• L23-74

Dashboard metric cards

The number cards give a short view of the selected scope and compare the current range with the prior range of the same length. They cover ticket volume, the share of resolved tickets fulfilled within SLA, average first response time, average resolution time, and average feedback rating.

These measures answer different questions. Ticket volume shows demand. SLA fulfillment shows whether resolved work met its service target. The SLA percentage applies only to tickets that have an SLA and a resolved status. Time measures show speed. Feedback rating shows the customer view of resolved work. A ticket must have the related SLA data before SLA-based time or fulfillment measures can contribute.

References: desk/…/Dashboard.vue• L94-109 helpdesk/…/dashboard.py• L145-275

Dashboard trend charts

Trend charts show how ticket activity and feedback change over time. The ticket trend combines open and resolved ticket counts with an SLA fulfillment line. The feedback trend combines rated-ticket volume with the average rating. The charts use the ticket creation date for work volume and the resolution date for feedback, so feedback aligns with the period in which work was resolved.

The dashboard also groups tickets by team, ticket type, priority, and channel. Managers get two extra views for tag use: the most-used tags and tag volume over time. These groupings help explain changes in the top-line cards rather than replace the ticket list used for action.

Each chart has a signal-specific empty state. For example, no ticket activity, no feedback, and no tag use are different results. The dashboard keeps those states separate from loading and from a full dashboard range with no usable data.

References: helpdesk/…/dashboard.py• L277-423 helpdesk/…/dashboard.py• L426-581 desk/…/Dashboard.vue• L103-177 desk/…/Dashboard.vue• L287-355 desk/…/Dashboard.vue• L386-393 desk/…/Dashboard.vue• L487-499

Ticket statistics

Ticket statistics attach operational measures to a customer or contact. They provide a compact history of service results for that relationship and use the same ticket data as the wider dashboards.

Customer and contact statistics

The customer and contact views show four cards: average feedback received, failed SLAs, average first response time, and average resolution time. The caller supplies either a customer or a contact as the scope. The results include a time series for time and SLA measures, plus a one-to-five-star distribution for feedback.

The statistics service supports last-week, last-month, last-three-month, and last-six-month windows. It compares SLA failures with the matching prior window and changes the time grouping as the window grows, so longer views stay readable.

References: desk/…/TicketStats.vue• L1-83 desk/…/TicketStats.vue• L87-106 helpdesk/…/ticket_stats.py• L53-90 helpdesk/…/ticket_stats.py• L93-205 helpdesk/…/ticket_stats.py• L208-248

Statistics scope and access

The statistics API supports three internal scopes: agent, customer, and contact. Customer and contact scopes map to the matching ticket fields. An agent can read their own agent statistics, while an Agent Manager can read another agent's statistics.

Scope is part of the meaning of every result. A chart for a contact is not an organization chart with a contact label; it is a query limited to tickets for that contact. This makes the cards useful in customer and contact records without changing their metric definitions.

References: helpdesk/…/analytics_utils.py• L10-38 helpdesk/…/ticket_stats.py• L13-38 helpdesk/…/ticket_stats.py• L228-248

Analytics API surfaces

The analytics APIs serve three levels of operational insight: agent-home work, filtered organization results, and relationship or ticket detail. Each surface returns data shaped for its view, so the client can refresh a selected card or panel without changing the meaning of the underlying measure.

API surfaceMain question
Agent-home servicesWhat should this agent act on, and how is their work trending?
Dashboard data serviceWhat is happening across the organization or selected team and agent?
Ticket statistics serviceHow does service perform for this customer, contact, or agent?
Per-ticket analytics serviceWhere did this ticket spend time, and did it meet its commitments?

The services share ticket fields and SLA concepts, but their scopes differ. Dashboard and statistics views compare groups or periods. Per-ticket analytics follows one conversation and explains its timing.

References: helpdesk/…/agent_home.py• L20-54 helpdesk/…/dashboard.py• L23-74 helpdesk/…/ticket_stats.py• L228-248 helpdesk/…/ticket_analytics.py• L41-64

Ticket analytics

Ticket analytics explain the service path of one ticket. For users who can read that ticket, they combine SLA milestones, conversation timing, hold time, and routing change signals so an engineer or support lead can see why a ticket met or missed its targets.

Ticket analytics view

The Analytics tab is part of the ticket activity area. It presents a ticket timeline first, then a conversation summary and metric cards. The view reloads when the ticket changes and when status or priority changes, because those changes can alter the SLA picture.

The analytics API returns five parts of one ticket's story:

PartPurpose
SLA flagShows whether the ticket has an SLA
TimelineShows creation, first response, hold, and resolution milestones
MetricsShows agent response gaps, customer response gaps, and hold time
EventsPlaces customer messages and agent replies on the timeline
SummaryCounts messages and comments, lists agents, and signals SLA or team changes

References: desk/…/TicketActivityPanel.vue• L81-115 desk/…/TicketAnalyticsTab.vue• L1-49 helpdesk/…/ticket_analytics.py• L41-64

SLA timeline

The timeline places the ticket's work against its response and resolution commitments. It marks whether a milestone is complete, pending, or breached. It also shows customer messages, agent replies, the longest agent wait, and time in which the SLA clock was paused.

When an SLA exists, measured durations use its working calendar. Without an SLA, the view falls back to elapsed wall-clock time. A hold is shown as a paused period rather than as a normal reply gap, which prevents time on hold from being treated as agent delay.

References: helpdesk/…/ticket_analytics.py• L67-84 helpdesk/…/ticket_analytics.py• L102-180 helpdesk/…/ticket_analytics.py• L192-216 helpdesk/…/ticket_analytics.py• L337-500 desk/…/TicketTimeline.vue• L153-163 desk/…/TicketTimeline.vue• L519-637

Conversation summary

The conversation summary gives counts and routing context beside the timeline. It counts customer messages, agent replies, and internal comments. It also shows the agents involved and calls out repeated SLA or team changes when they are large enough to matter.

The metric cards separate the average time for an agent to answer a customer from the average time for a customer to answer an agent. They show total hold time as a third measure. Together, these values distinguish agent wait from customer wait and from time that the SLA clock did not run.

References: helpdesk/…/ticket_analytics.py• L192-220 helpdesk/…/ticket_analytics.py• L223-307 desk/…/ConversationSummary.vue• L51-80 desk/…/AnalyticsMetricCards.vue• L29-47

Activity views

Activity views show the record of work around a ticket. They separate customer-facing communication from internal notes, calls, and system history while preserving a single chronological activity view.

Ticket activity tabs

The ticket activity area provides Activity, Emails, Comments, and Analytics tabs. Calls appear when telephony is enabled. The Activity tab combines the available email, comment, history, view, and call records in time order. The other tabs filter that same activity set by type.

This view is different from ticket analytics. Activity answers what happened and who took part. Analytics measures the waits, commitments, and outcomes that those events create.

References: desk/…/TicketActivityPanel.vue• L1-48 desk/…/TicketActivityPanel.vue• L81-115 desk/…/TicketActivityPanel.vue• L120-245

Agent activity feed

The agent home feed is a shorter operational view than the ticket activity tabs. It looks across tickets for actions by the current agent over the recent activity window, keeps one latest action per ticket, and removes tickets the agent cannot access. Each item opens the related ticket.

The feed uses activity records from replies, comments, ticket updates, views, and assignments. The ticket activity record provides a place to log a user action, while the feed decides which action types are useful to show as recent work.

References: helpdesk/…/agent_home.py• L589-703 helpdesk/…/hd_ticket_activity.py• L8-15 desk/…/RecentActivity.vue• L74-145

Operational reports and charts

Charts turn the API results into readable comparisons. Small cards use line or bar views for time series, while the operational dashboard uses number cards, axis charts, and donut charts for counts and groups.

Chart presentation

Line charts present response and resolution speed across time. Bar charts present ticket counts, SLA failures, and feedback distributions. A chart can show a total or an average in its headline, then use the plotted values to show the shape of the selected period.

Agent-home charts keep their controls close to the signal they change. Ticket volume uses a period selector. Average-time charts use longer periods or a custom range. Reviews use both a period and a sort order, then let the agent open the source ticket or the matching review list.

Empty data has a separate state from loading data. The dashboard explains which business signal is absent, such as no ticket activity, no team data, or no feedback data. This keeps a valid zero result distinct from a failed or unfinished request.

References: desk/…/LineChartCard.vue• L24-30 desk/…/LineChartCard.vue• L76-105 desk/…/BarChartCard.vue• L28-35 desk/…/BarChartCard.vue• L81-121 desk/…/Dashboard.vue• L278-345 desk/…/AgentTicketsCard.vue• L38-57 desk/…/AvgTimeMetrics.vue• L264-358 desk/…/RecentFeedback.vue• L491-627

Ticket analytics report

The Ticket Analytics report counts tickets across time periods and groups them by contact, assignee, ticket type, or priority. Its rows show each period and a total. Its chart is a line view of the same period counts.

The report uses weekly, monthly, quarterly, half-yearly, and yearly ranges. It counts a ticket in every assigned-user row when more than one user is assigned, so assignee totals describe assigned work rather than unique tickets across the whole report.

References: helpdesk/…/ticket_analytics.py• L21-36 helpdesk/…/ticket_analytics.py• L41-103 helpdesk/…/ticket_analytics.py• L143-205 helpdesk/…/ticket_analytics.py• L207-260 helpdesk/…/ticket_analytics.json• L14-24

Ticket summary report

The Ticket Summary report gives a grouped view of ticket state and service results. It includes enabled ticket statuses, SLA outcome counts, ticket totals, and average response, hold, and resolution measures. Its stacked bar chart compares status counts across the selected grouping.

Status columns come from the enabled ticket statuses, so the report follows the status model used by the service team. The report summary also totals each status and assigns an indicator based on the status category.

References: helpdesk/…/ticket_summary.py• L18-64 helpdesk/…/ticket_summary.py• L66-165 helpdesk/…/ticket_summary.py• L386-469 helpdesk/…/ticket_summary.json• L14-24

Change checklist

When these files or sections are changed, remember to consider these:

  • Keep dashboard chart keys aligned between the dashboard data response and the client chart selection. The client uses stable keys to choose chart types and empty states.
  • Keep dashboard date and team/agent filters aligned across number cards, trend charts, master charts, and tag charts. A new filter must not update only one dashboard group.
  • Keep agent-home period controls aligned with the period values accepted by each card's data service. Custom ranges must remain distinct from preset ranges.
  • Keep review period and sort changes aligned with the review list and the link to the matching ticket view. Reset the selected review when the result set changes.
  • Keep ticket statistics scope validation aligned with the doctype-to-field map. A new supported scope needs both a safe field mapping and access rules.
  • Keep SLA fulfillment denominator rules aligned with the resolved-status and SLA filters. The fulfilled count must remain a subset of the tickets used for the percentage.
  • Keep SLA time measures consistent about the required SLA, resolved status, and date field. Feedback is tied to resolution time in the organization dashboard.
  • Keep timeline event meanings aligned with message direction. Agent gaps measure waits after customer messages, while customer gaps measure waits after agent replies.
  • Keep per-ticket pause handling aligned across the timeline, agent-gap metrics, and hold total. A paused interval must not become agent wait while it remains part of total hold time.
  • Keep enabled ticket status categories aligned with Ticket Summary columns and status indicators. Status changes affect both the report shape and its meaning.

Important failure modes

TriggerConsequenceGuard
A non-manager requests organization data or another agent's statisticsThe API rejects the request instead of returning a broader viewEnforce the agent scope and manager check before reading results
A non-empty agent-home layout contains a card with stale or unsupported period dataThe card can show an old result or an empty chart even though other cards loadKeep each card's period contract aligned with its data service
A ticket has no SLA or lacks the needed response or resolution eventSLA-based duration cards have no meaningful value and may show zero or an empty stateTreat missing SLA and missing event fields as unavailable data
A ticket remains in a paused statusThe timeline can show a running hold and a pending resolution rather than a completed resolutionInclude the active hold in the current hold total and keep the resolution pending
A dashboard range has no ticket, feedback, team, or tag rowsA chart can look empty even though the request succeededRender the matching empty state and keep it distinct from loading
Ticket statuses are added or disabled without the summary report reading the status modelStatus columns, totals, and chart series no longer match current operationsBuild summary status fields from enabled ticket statuses
One ticket has several assigned users in an assignee-grouped reportAssignee totals can exceed the unique ticket countRead assignee rows as assigned-work counts, not a deduplicated ticket total
A ticket has no SLA but the analytics view treats missing working-time data as a breachThe ticket shows a false service failure or a misleading durationUse elapsed time only as the defined no-SLA fallback and keep missing timestamps unavailable
Version data is missing or malformed for a ticketPause windows or routing-change counts can be incomplete while the main ticket data remains validIgnore invalid version rows and allow duration totals to render without a pause window

Key files

FileWhy to read it
desk/…/Home.vueDefines the personal dashboard lifecycle, card set, saved layout behavior, and empty layout state.
desk/…/ChartItem.vueMaps each saved home card to the user-facing performance, queue, feedback, or activity view.
desk/…/AgentTicketsCard.vueShows personal ticket volume and its period trend.
desk/…/AvgTimeMetrics.vueShows first response and resolution averages across selectable periods.
desk/…/PendingTickets.vueShows the agent's SLA, pending, and recent ticket queues.
desk/…/RecentActivity.vueShows the agent's latest ticket work in a compact feed.
desk/…/RecentFeedback.vueShows ratings, feedback text, and review filtering.
helpdesk/…/agent_home.pyDefines the agent-home metrics, work queues, feedback, and recent activity data.
desk/…/Dashboard.vueShows the manager and agent dashboard scopes, filters, chart groups, and signal-specific empty states.
helpdesk/…/dashboard.pyDefines the operational metric meanings and chart data returned for each dashboard group.
helpdesk/…/ticket_stats.pyDefines customer, contact, and agent statistics such as feedback, failed SLAs, and average times.
helpdesk/…/analytics_utils.pyDefines shared scope rules and average-time result shapes for statistics APIs.
desk/…/TicketAnalyticsTab.vueShows how per-ticket analytics are arranged in the ticket workspace.
helpdesk/…/ticket_analytics.pyDefines the per-ticket timeline, SLA-aware response gaps, hold time, conversation summary, and routing-change signals.
desk/…/TicketActivityPanel.vueShows the relationship between activity tabs and the Analytics tab.
helpdesk/…/ticket_summary.pyDefines grouped ticket status, SLA, and service-time reporting.
helpdesk/…/ticket_analytics.pyDefines time-based ticket counts by contact, assignee, type, or priority.