swsd_list_my_incidents
List incidents assigned to the authenticated user with optional state, priority, site, category, and date filters. Scopes results by the user's email because SWSD ignores assignee email filters.
Instructions
List incidents assigned to the authenticated user. Internally calls swsd_get_me to discover the user's email, then calls /incidents.json with the OTHER server-side filters applied (state, priority, etc.) and narrows the response client-side by assignee.email — because SWSD's /incidents.json endpoint silently ignores assignee_email / requester_email filters (verified 2026-05-08 against the live API: a fake email returns the entire tenant). The client-side filter is the only correct way to scope to a specific user. For broader queries use swsd_list_incidents with assigned_to_group=<group_id> (group filtering does work server-side).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | No | Page number (1-indexed). | |
| query | No | Free-text search across incident title and description. Same async-indexing caveat as solution search — just-created tickets may not appear for a few minutes. | |
| sites | No | Filter to incidents at any of these site names (use swsd_list_sites to discover). | |
| states | No | Filter to incidents matching ANY of these states (e.g. ["New", "Assigned"]). | |
| sort_by | No | Sort key. Default is SWSD-side (typically updated_at desc). | |
| per_page | No | Results per page (1-100). SWSD caps at 100. | |
| categories | No | Filter to incidents matching ANY of these category names. | |
| created_to | No | Filter to incidents created on or before this ISO date or datetime. | |
| priorities | No | Filter to incidents matching ANY of these priorities (e.g. ["High", "Medium"]). | |
| sort_order | No | Sort direction. Use uppercase per SWSD convention. | |
| updated_to | No | Filter to incidents updated on or before this ISO date or datetime. Pair with updated_from for an explicit range. | |
| departments | No | Filter to incidents in any of these department names. | |
| created_from | No | Filter to incidents created on or after this ISO date or datetime (YYYY-MM-DD or RFC 3339). | |
| state_is_not | No | Negative state filter: exclude incidents in any of these states (e.g. ["Resolved", "Closed"] to see only open work). | |
| updated_from | No | Filter to incidents updated on or after this ISO date or datetime (YYYY-MM-DD or RFC 3339). | |
| updated_within | No | Convenience alias for updated_from: "Nh" is an exact hours-ago ISO timestamp; "Nd" and "Nw" use the UTC calendar date N days or N weeks ago. N must be 1-365. Ignored if updated_from is explicitly set. | |
| requester_email | No | Filter to incidents requested by this email. | |
| assigned_to_group | No | Filter to incidents assigned to this group ID. Use swsd_list_groups to find the ID. NOTE: this is GROUP id, not user id. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| scan | Yes | Honest accounting of the client-side filter: what was scanned vs matched. | |
| incidents | Yes | ||
| pagination | Yes | ||
| assignee_email | Yes | The authenticated user's email used as the assignee filter (applied client-side). | |
| applied_filters | Yes | Echo of the filters applied to this query — empty object if none. Use this to reason about whether the result count reflects your filters or the tenant total. NOTE: assignee_email and requester_email are applied client-side (post-fetch) because SWSD ignores them server-side. |