Import Sentry issues
import_sentry_issuesImport existing Sentry issues into Mushi's report queue by ID or search query, enabling triage of bugs that predate webhook setup.
Instructions
Pull existing Sentry issues into Mushi's report queue: by issueIds (numeric ids or short ids like WEB-12, at most 10) or by a Sentry search query (default is:unresolved) within the project's configured Sentry project, limit 1-10. For a backlog, add sinceDays (1-90) and call again with cursor set to the returned nextCursor until it is null; sentryProject picks another of the project's Sentry projects. Each issue goes through the same path as a Sentry webhook delivery: deduped per issue, linked, classified. An issue already linked to a report answers linked and is never reopened. Returns { items: [{ input, issueId, shortId, outcome, reportId, error? }], created, linked, failed, indexing, sentryProject, sentryProjects, nextCursor }. Write; idempotent; spends classification budget per new report. Needs the Sentry org slug, project slug and an auth token (event:read, project:read) in Integrations → Sentry. Use for issues that existed before the webhook was wired; then call triage_issue on a created report.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | How many issues a query imports (1-10, default 5) | |
| query | No | Sentry search query within the configured Sentry project (default is:unresolved). Not with issueIds. | |
| cursor | No | nextCursor from the previous import, to fetch the next page of a backlog. Search mode only. | |
| issueIds | No | Sentry issue ids or short ids (e.g. "4501", "WEB-12"), at most 10 | |
| projectId | No | Project UUID. Defaults to configured project. (`project_id` is accepted too.) | |
| sinceDays | No | Only issues seen in the last N days (1-90). Search mode only. | |
| sentryProject | No | Which of the project's Sentry projects to search (default: the primary one). Search mode only. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| items | Yes | One entry per requested or matched issue | |
| failed | Yes | Issues that could not be imported | |
| linked | Yes | Report ids that already existed for these issues | |
| created | Yes | Report ids created by this import | |
| indexing | Yes | Whether stack-frame files were queued for codebase indexing | |
| nextCursor | No | Pass back as cursor to import the next page; null when the backlog is done | |
| sentryProject | No | The Sentry project a search ran in (null for issueIds) | |
| sentryProjects | No | This project's Sentry projects, primary first |