get_stuck_handoffs
Identifies tasks stuck in handoff states by checking state-change activities, not just comments. Groups stuck items by transition pattern to reveal which handoff is most often dropped.
Instructions
Tasks that crossed a team boundary and haven't moved since.
Distinct from get_handoff_snapshot (sorts by updated, polluted by
comments) and track_cross_dept_journey (forensic per-issue
deep-dive). This walks state-change activities specifically, so an
item in Ready for test with fresh comments but no state change in
14 days IS surfaced as stuck.
Algorithm:
Find issues currently in handoff-receiving states (qa, release, rework, dev) on the board.
For each, fetch state-change activities.
Find the latest state change. If it happened ≥ stuck_days ago AND that transition crossed a team-ownership role boundary (dev→qa, qa→release, etc.) → STUCK.
Output is grouped by transition pattern (Dev→QA stalls, QA→Release stalls, etc.) so you see which handoff most often gets dropped.
Args: board_name: Board name (partial match), ID, or URL. stuck_days: Days without a state change to count as stuck (default 4). lookback_days: Velocity-window framing in the header (default 30). limit: Max items shown per transition section (default 10). format: "report" (markdown) or "json" (structured payload). instance: YouTrack instance (optional).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | ||
| format | No | report | |
| instance | No | ||
| board_name | Yes | ||
| stuck_days | No | ||
| lookback_days | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |