# Split Tasks
URL: https://pro.rv-grid.com/guides/gantt/scheduling/split-tasks/
Source: src/content/docs/guides/gantt/scheduling/split-tasks.mdx
Description: Pause work inside a task span using split ranges.
Use `splitRanges` to pause work inside a task:

```typescript
{
  id: 'qa',
  name: 'QA',
  startDate: '2026-04-01',
  duration: 4,
  splitRanges: [{ startDate: '2026-04-03', endDate: '2026-04-04' }],
}
```

The scheduler extends the computed finish by the split duration so the task retains its planned working duration. Resource allocation checks skip split dates, and task bars render split ranges as visible gaps.

## Timeline Split Editing

- **Create**: Alt-drag inside a regular task bar.
- **Move**: Drag an existing split gap.
- **Remove**: Double-click a split gap.

## Example: Split Task with Resource Allocation

```typescript
grid.source = [{
  id: 'qa',
  startDate: '2026-04-01',
  duration: 4,
  splitRanges: [{ startDate: '2026-04-03', endDate: '2026-04-04' }],
}];
```

**Expected result**: the task keeps four working days of duration, but its computed finish extends. Resource allocation checks skip `2026-04-03` and `2026-04-04`.
