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 / service-operations

Service operations and performance

Service operations connect ticket intake to team capacity, service commitments, and performance review. Teams use routing rules to move work to the right people, service levels to set response and resolution targets, and dashboards to see whether the helpdesk meets those targets.

Operational model

The operational model follows a ticket from ownership to outcome. A ticket can belong to a team and one or more agents, receive a service level based on its context, and produce measures when agents respond, pause work, resolve it, or collect customer feedback.

The main operational concepts are:

ConceptOperational purpose
TeamGroups agents around a shared queue and access scope.
Assignment ruleChooses assignees when a ticket matches a condition.
Service levelSets response and, when enabled, resolution targets.
Working calendarDefines the hours, breaks, and holidays that count toward a target.
DashboardShows workload, target results, trends, and service quality.
Ticket analyticsExplains the timing and people involved in one ticket.

These concepts work as one control loop. Routing distributes new work, service levels define what timely service means, and analytics show where the process needs attention. See Work routing and SLAs for the routing and target model, and Dashboards and ticket analytics for the reporting model.

References: helpdesk/…/hd_team.py• L22-115 helpdesk/…/hd_team.json• L17-58 helpdesk/…/hd_service_level_agreement.py• L21-207 helpdesk/…/dashboard.py• L145-249

Work distribution

Work distribution uses teams and assignment rules to turn ticket properties into ownership. A team holds its members and its shared ticket scope. Each team creates and maintains a linked assignment rule, so matching open tickets can move to the current team members.

The linked rule is active only when the team is enabled and has members. Team changes update the rule’s conditions and assignee list. Renaming a team keeps those conditions tied to the new team name. Round-robin distribution follows the current member list, while weighted distribution keeps existing member weights when the team changes.

Assignment rules provide two control points:

  • Assignment conditions define which tickets enter the rule.
  • Unassignment conditions define when a ticket leaves the rule.
  • Priority and schedule decide which enabled rules take effect and when.
  • Assignee selection supports direct users or weighted distribution.

Team state also controls the work path. A disabled team disables its linked assignment rule. A team can be configured to ignore agent restrictions, which broadens the data that its agents can access. If a ticket moves to another team, an assignee who is not in the new team can lose the assignment when the team rule has active users. This prevents a ticket from appearing owned by a person who cannot work in that team’s queue.

The agent home view turns this ownership model into daily work. It highlights tickets with an approaching or missed target, newly assigned tickets, and tickets waiting for an agent response. Each item links back to the ticket so the agent can act from the work list.

References: helpdesk/…/hd_team.py• L22-119 helpdesk/…/test_hd_team.py• L12-148 helpdesk/…/hd_team.json• L27-58 desk/src/components/Settings/Assignment Rules/AssignmentRuleView.vue#L118-L292 helpdesk/…/hd_ticket.py• L467-520 helpdesk/…/agent_home.py• L420-586 desk/…/PendingTickets.vue• L203-349

Service commitments

A service level agreement (SLA) is a policy that sets the time allowed for a first response and, optionally, for resolution. The system selects an enabled policy that is active for the current date, includes the ticket priority, and matches its condition. Ranked policies are considered before the default policy. A blank condition on a non-default policy does not match every ticket, and a site can operate without a default policy.

The target clock starts when the SLA attaches to the ticket. It uses the policy’s working days, working hours, breaks, and holiday list. It records due times and the time used for response and resolution. A paused ticket stops the active clock. Hold time is added to the resolution target when work resumes. Changes to a holiday list recalculate open tickets that use the linked SLA.

SLA policies keep their target data consistent before they can guide work. Each priority needs a response target. A resolution target is also required when resolution tracking is enabled. The response target cannot exceed the resolution target, and each workday can appear only once. A break must have both ends and must sit inside the workday.

Ticket state makes the commitment visible to both agents and managers. A ticket can be due for a first response, due for resolution, paused, fulfilled, or failed. The home view surfaces due and overdue work, while the ticket view shows the target timeline and the time spent against each commitment.

Use Work routing and SLAs for the detailed relationship between team routing, SLA matching, calendars, pauses, and target status.

References: helpdesk/…/utils.py• L12-52 helpdesk/…/hd_service_level_agreement.py• L21-207 helpdesk/…/hd_service_level_agreement.py• L209-386 helpdesk/…/hd_service_level_agreement.py• L388-480 helpdesk/…/hd_service_holiday_list.py• L17-106 helpdesk/…/test_hd_service_level_agreement.py• L46-245 helpdesk/…/test_hd_service_level_agreement.py• L267-349 helpdesk/…/hd_ticket.py• L970-1013 helpdesk/…/agent_home.py• L420-482 desk/…/TicketAnalyticsTab.vue• L1-51

Operational reporting

Operational reporting turns ticket activity into views for different decisions. Agents need a focused view of their own workload and risks. Managers need team and organization views that compare volume, service results, and customer experience over a selected period.

The organization dashboard supports date ranges and filters for team or agent. It presents:

  • Ticket volume and change from the previous period.
  • The share of resolved tickets fulfilled within SLA.
  • Average first response and resolution time.
  • Average feedback rating.
  • Trends for open tickets, resolved tickets, SLA results, and feedback.
  • Ticket mix by team, type, priority, channel, and tags.

Access follows the scope of the view. An agent sees personal data. An agent manager can compare agents and teams and can open organization-level tag views. Empty views show that no activity exists for the selected scope rather than implying that the service is healthy.

Use Dashboards and ticket analytics for the dashboard measures, filters, chart views, and per-ticket review.

References: helpdesk/…/dashboard.py• L23-75 helpdesk/…/dashboard.py• L145-249 helpdesk/…/dashboard.py• L251-441 desk/…/Dashboard.vue• L261-337 desk/…/Dashboard.vue• L386-452

Ticket-level review

Ticket-level analytics explain why a service target was met or missed. The review combines the target timeline with customer and agent messages, response gaps, hold time, internal comments, the agents involved, and changes to the team or SLA.

The review separates business time from calendar time when an SLA exists. This makes response and resolution measures match the service calendar. It also shows pauses as periods when the target clock stopped, so a manager can distinguish waiting work from time that counted against the team.

The ticket timeline presents four useful signals:

  • The first response milestone and its due point.
  • The resolution milestone and its due point.
  • Customer messages and agent replies in order.
  • Long waits, missed targets, and active or completed holds.

This view supports coaching and case review. It does not replace the aggregate dashboard because it explains one ticket rather than measuring a team across a period.

References: helpdesk/…/ticket_analytics.py• L1-60 helpdesk/…/ticket_analytics.py• L63-80 helpdesk/…/ticket_analytics.py• L188-237 helpdesk/…/ticket_analytics.py• L271-325 desk/…/TicketAnalyticsTab.vue• L1-51 desk/…/AnalyticsMetricCards.vue• L29-47 desk/…/ConversationSummary.vue• L51-85 desk/…/TicketTimeline.vue• L153-163

Operational flow

The operational flow shows how ownership, commitments, action, and measurement reinforce each other. A ticket enters a team’s work, receives a target policy, creates work signals for agents, and later contributes to service reports.

flowchart LR
    A[Ticket enters] --> B[Team and assignment rules]
    B --> C[SLA policy and working calendar]
    C --> D[Due and overdue work signals]
    D --> E[Agent response, pause, and resolution]
    E --> F[Ticket outcome and feedback]
    F --> G[Dashboards and ticket analytics]
    G --> H[Routing and service improvements]
    H --> B

The loop is important because reporting is tied to the same ownership and target state that drives daily work. A change to a team, rule, SLA, status, or calendar can change both what agents see and how performance is measured.

References: helpdesk/…/hd_ticket.py• L75-105 helpdesk/…/hd_ticket.py• L984-1013 helpdesk/…/hd_service_level_agreement.py• L209-348 helpdesk/…/hd_service_holiday_list.py• L85-106 helpdesk/…/agent_home.py• L420-586 helpdesk/…/dashboard.py• L145-249

Change checklist

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

  • Keep team membership, assignment mode, member weights, linked-rule conditions, team disabled state, and ticket visibility aligned when changing team behavior.
  • Keep SLA selection order, active dates, priority rows, default behavior, and ticket attachment aligned when changing policy rules.
  • Keep SLA target status, due-time fields, pause handling, and dashboard filters aligned when changing SLA state or ticket status.
  • Keep the business-time rules in ticket analytics consistent with the SLA calendar, breaks, holidays, and the values stored on the ticket.
  • Recheck open-ticket due times when changing holiday-list contents or the calendar used by an SLA.
  • Keep dashboard scope checks consistent between the organization view, agent view, and ticket statistics endpoints.
  • Keep the stable chart keys and the dashboard empty states aligned when adding or renaming an operational measure.

Important failure modes

TriggerConsequenceGuard
A team has no members, or the team is disabled.Its linked assignment rule is disabled, so matching tickets do not receive automatic distribution from that team.Add active members and enable the team before relying on automatic assignment.
A team is disabled or its agents are set to ignore restrictions by mistake.Automatic distribution stops, or agents can see data outside the intended team scope.Review team status and access scope before changing team settings.
A ticket moves to a team while its current assignee is outside that team.The assignment can be cleared when the team rule has active users.Confirm the destination team members before changing the ticket team.
An SLA has a blank condition but is not the default policy.It does not catch tickets, so another policy or no policy must handle them.Add a real condition or mark the intended fallback as the default policy.
An SLA loses a priority or is disabled while open tickets still use it.Those tickets can lose the SLA on their next update unless another policy matches.Review open tickets before removing priorities or disabling the policy.
A working calendar has an invalid break or omits a service day or holiday.The policy cannot save, or due times and elapsed service measures do not match the team’s intended coverage.Validate workday times, breaks, and the holiday list as one service policy.
A holiday list changes while linked tickets are open.Their SLA due times can move when the list recalculates the tickets.Confirm the new holiday dates before saving the list.
A ticket has no SLA.Ticket analytics use elapsed wall-clock time instead of business time.Attach the correct service level when business-hour measures are required.
A manager filters dashboard data to a team or agent without the required role.The dashboard request is rejected instead of exposing another group’s data.Use organization filters with an Agent Manager role.

Key files

FileWhy to read it
helpdesk/…/hd_team.pyShows how a team owns members and stays linked to its assignment rule.
helpdesk/…/test_hd_team.pyVerifies rule creation, team-name conditions, member synchronization, weighted distribution, and disabled-state behavior.
helpdesk/…/hd_team.jsonShows the team settings that control membership, disabled state, assignment linkage, and access scope.
desk/src/components/Settings/Assignment Rules/AssignmentRuleView.vueShows the user-facing controls for conditions, schedules, priority, and assignees.
helpdesk/…/utils.pyShows how the system chooses an active SLA for a ticket.
helpdesk/…/hd_service_level_agreement.pyDefines the service target states, working-time clock, calendar rules, and pause behavior.
helpdesk/…/hd_service_holiday_list.pyShows how holiday dates affect linked open-ticket targets.
helpdesk/…/test_hd_service_level_agreement.pyVerifies SLA selection, policy changes, breaks, holidays, and target calculations.
helpdesk/…/hd_ticket.pyConnects ticket changes to routing, SLA attachment, response, resolution, and access.
helpdesk/…/agent_home.pyDefines the agent’s daily work signals and personal performance measures.
helpdesk/…/dashboard.pyDefines the organization and agent performance measures and chart data.
desk/…/Dashboard.vueShows how operational data is scoped, filtered, and presented to agents and managers.
helpdesk/…/ticket_analytics.pyBuilds the per-ticket timeline, timing measures, conversation gaps, and routing history.
desk/…/TicketAnalyticsTab.vueShows how per-ticket analytics are placed in the ticket review flow.