How do parent-child case hierarchies assist support teams in managing major system outages?
Answer
Basics: During an outage, hundreds of customers raise cases about the same failure. A parent case represents the underlying incident (or problem); each customer case points to it through the standard ParentId lookup. Engineers work the parent, and support communicates to all linked cases.
How it works: Set Parent Case on each child (manually, via a Flow that matches on a keyword or product, or by an agent). The Case page shows a Parent Case lookup and the related Child Cases list; the Case Hierarchy view (View Hierarchy) displays the tree with configurable columns. When the parent resolves, automation can post an update or close the children. Use a dedicated record type for incidents with its own support process and queue.
Advanced / deep dive: ParentId is a lookup, so you cannot have roll-up summary fields; compute child counts with Flow, Apex or a declarative rollup tool. Because each child keeps its own entitlement and milestones, SLAs stay accurate per customer, unlike merging. Propagate updates with a record-triggered Flow or a trigger handler that finds children by ParentId IN :ids. Be careful with recursion and DML volume: closing 5,000 children in one transaction hits DML row limits (10,000 rows) and may need Queueable or Batch Apex. Salesforce also offers Incident Management objects (Incident, Problem, Change Request) in newer releases for ITSM-style processes; verify availability in your edition. Swarming (collaboration through Slack) and Omni-Channel routing to a specialist queue complement hierarchies.
Code / config example:
// Called from the Case trigger handler (after update) when parents move to a closed status
public static {
Set<Id> parentIds = <Id>();
(Case c : newCases) {
(c.Status == closedStatus && oldMap.get(c.Id).Status != closedStatus) parentIds.add(c.Id);
}
(parentIds.isEmpty()) ;
List<Case> children = [SELECT Id FROM Case WHERE ParentId IN :parentIds ];
(Case ch : children) ch.Status = closedStatus;
(!children.isEmpty()) update children;
}