Skip to main content

Department Links

Department Links enable inter-department data sharing, allowing linked departments to view each other's calls, units, and personnel. The module is managed by the LinksController.

Overview

Department linking is a plan-gated feature — departments on the Free Plan cannot use links.

Each department has a unique Link Code that other departments use to initiate a link request.

Request Link → Target Enables → Data Sharing Active → Disable/Delete
  1. Requesting department creates the link using the target's link code
  2. Target department reviews and enables the link
  3. Both departments can then view shared data

Validation

  • The link code must resolve to a valid department
  • Departments cannot link to themselves
  • Both departments' plans must support links

Process

  1. Link created with LinkEnabled = false
  2. Email notification sent to the target department
  3. Target department can view and accept the link

Only the target (linked) department can enable a link:

  • Set a DepartmentColor for visual identification
  • LinkEnabled set to true
  • LinkAccepted timestamp recorded

Only the target department can disable:

  • LinkEnabled set to false
  • LinkAccepted cleared

Shared Data

When a link is enabled and the linked department has sharing configured, the following data is available:

Active Calls

Returns active calls from the linked department:

  • Call name and nature
  • State and priority with colors
  • Timestamps
  • Location data

Units

Returns all units from the linked department:

  • Unit name, type, and station
  • Current state (with custom state resolution)
  • State colors and timestamps

Personnel

Comprehensive personnel view from the linked department:

  • User name and group assignment
  • Current action status (with responding-to-call info)
  • Staffing level
  • Role assignments
  • Sorted by action weight then name

Data Endpoints

EndpointPurpose
GetActiveCallsListActive calls from linked department
GetUnitsListUnits from linked department
GetPersonnelListPersonnel from linked department

Interactions with Other Modules

ModuleInteraction
SubscriptionPlan limits control link availability
CallsShared call data from linked departments
UnitsShared unit data from linked departments
PersonnelShared personnel data from linked departments
Custom StatusesStatus resolution for linked department data
GroupsGroup data included in personnel view
Resource OrdersLinks can be used for resource order visibility