# How do milestone recurrence rules handle recurring SLA targets for long-running troubleshooting cases?

**Topic:** Service Cloud · **Difficulty:** Medium · **Tags:** Service Cloud, Milestone Recurrence, SLA Tracking

Read it on the site: https://www.forcechallenges.com/interview-questions/how-do-milestone-recurrence-rules-handle-recurring-sla-targets-for-long-running-troubleshooting-cases

## Answer

**Basics:** Entitlement Management tracks support commitments. An entitlement process is a timeline of milestones (First Response, Resolution, and so on), each with a time trigger in minutes. Normally a milestone fires once per case. Long-running cases such as enterprise bugs need a repeating commitment ("update the customer every week until closed"). Milestone recurrence solves that without cloning milestones by hand.

**How it works:** Setup > Entitlement Processes > open a process (or version) > Milestones > edit the milestone. Set Recurrence Type to No Recurrence, Independent or Sequential. Sequential means the next instance starts only after the previous one is completed. Independent means instances are spawned on the time trigger without waiting for earlier ones. Each instance is a CaseMilestone record with its own TargetDate, IsCompleted and IsViolated flags. A case needs an Entitlement that points to the process, and the process entry criteria must match. Agents complete the instance (Case Feed Milestone Tracker, a flow, or by setting CaseMilestone.CompletionDate), and the next recurrence is scheduled.

**Advanced / deep dive:** Time triggers can fire actions (field update, email alert, task, flow in newer releases) at success, warning and violation points; use them to notify the owner and manager. For dynamic targets (for example priority-dependent weekly cadence), implement `Support.MilestoneTriggerTimeCalculator` and select it on the milestone; it returns minutes. Business hours on the entitlement or case drive the clock, so a weekly 7-day target in business hours stretches beyond 7 calendar days. Recurrence has a cap on the number of repeats; verify the current maximum in the release notes. Reporting uses the CaseMilestone object via the Cases with Milestones report type. Because instances are records, thousands of long-lived cases multiply CaseMilestone volume, so plan for data volume.

**Code / config example:**
```apex
// Dynamic trigger time in minutes based on case priority
global class WeeklyCheckInCalculator implements Support.MilestoneTriggerTimeCalculator {
    global Integer calculateMilestoneTriggerTime(String caseId, String milestoneTypeId) {
        Case c = [SELECT Priority FROM Case WHERE Id = :caseId];
        return c.Priority == 'High' ? 2880 : 10080; // 2 days vs 7 days
    }
}
```

**Hidden gotchas & must-remember points:**
- Recurrence is configured per milestone inside a specific process version; with versioning on, edit the new version, not the old one.
- Sequential waits for completion; if agents forget to complete, no next instance appears.
- Cases must have an Entitlement populated; without it no process starts.
- Time is in minutes and obeys business hours, so calendar math surprises people.
- Changing the entitlement process on a case does not retroactively create missed instances.
- Entitlement Management must be enabled and milestones added to the Case page layout or console component for agents to see them.

**Best practice:** Use Sequential for human check-ins so overdue ones do not pile up, and pair every recurrence with a warning action to the owner.

---
Source: ForceChallenges · last updated 2026-11-02
