- Documentation
- Integrations
- Apps
- Sentry integration
Sentry integration
Triage Sentry issues, manage projects, teams and releases, and react to alerts and error events across your clients' Sentry organizations.
What it does
The Sentry integration lets you run a client's error monitoring from inside a workflow. Connect a client's Sentry organization once and your workflows can triage issues (resolve, assign, bookmark, delete), read the events behind them, set up projects, teams and client keys (DSNs) for a new client, and record releases and deploys from your CI. Webhook triggers start a workflow when a Sentry alert fires or reports issue activity, an issue is created or changes state, an error event arrives, or someone comments on an issue.
Organization, team, project and environment fields are dropdowns filled from the connected account, so you pick a project instead of typing its slug. Every dropdown also accepts a mapped value from an earlier step.
Connect a Sentry account
Sentry authenticates with a token. You can use either kind:
- Internal integration token (recommended). It belongs to the organization rather than a person, and you need an internal integration anyway for the triggers. In Sentry, open Settings → Developer Settings → Custom Integrations, click Create New Integration, choose Internal Integration, and grant the permissions your workflows need: Project (Read & Write, or Admin to delete projects), Team (Read & Write, or Admin to delete teams), Release (Admin), Issue & Event (Read & Write, or Admin to delete issues), Organization (Read, or Write to update settings) and Member (Read). Save, then copy the token from the integration page.
- Personal token. Open User Settings → Personal Tokens, create a token with the matching scopes (
org:read,org:write,project:read,project:write,project:admin,project:releases,team:read,team:write,team:admin,member:read,event:read,event:write,event:admin), and copy it. It stops working if that person leaves the organization.
Then:
- Open your workspace in TaskJuice and go to Connections.
- Choose Sentry and click Connect.
- Paste the token and enter the organization slug (the
acme-coinacme-co.sentry.ioorsentry.io/organizations/acme-co/), and save.
The connection reaches Sentry SaaS at sentry.io. Self-hosted Sentry is not supported.
Triggers
TaskJuice cannot register Sentry webhooks for you, so you set the subscription up by hand on the internal integration. One integration delivers every resource to the same URL, and TaskJuice routes each delivery to the right trigger by the Sentry-Hook-Resource header.
sentry-app/issue-alertfires when a Sentry alert runs this integration as an action, with the event that matched and the alert name intriggered_rule. Alerts on issues and on metric monitors both arrive here.sentry-app/alert-activityfires when an alert set to fire on issue activity runs this integration, for example when a metric monitor's issue resolves or Seer finishes a root cause, a fix or a pull request.data.activity.typesays which activity it was.sentry-app/metric-alertis deprecated. Sentry now runs metric alerts as metric monitors and sends their alerts as Issue Alert events, so use Issue Alert, and Alert Activity for the resolution.sentry-app/issue-changedfires when an issue is created, resolved, assigned, archived or unresolved. Theactionfield says which:created,resolved,assigned,ignored(archived) orunresolved.sentry-app/error-eventfires for every error event Sentry ingests, not only the first one of an issue. Sentry offers this resource only on its Business and Enterprise plans.sentry-app/issue-commentfires when a comment on an issue is created, updated or deleted.
To set them up:
- Add the trigger to a workflow, pick the Sentry connection on it, and copy the webhook URL shown for that connection. Each connection has its own URL, and a delivery sent to it starts only the workflows that use that connection, so give each client organization its own connection.
- In Sentry, open your internal integration (Settings → Developer Settings → Custom Integrations) and paste the URL into Webhook URL.
- Under Webhooks, tick the resources your triggers use:
issuefor Issue Created or Updated,errorfor Error Event Created,commentfor Issue Comment. These need the Issue & Event permission. - For Issue Alert and Alert Activity, turn on Alert Rule Action and save. Then, in Sentry's Alerts, add an alert whose action notifies the integration, and connect it to the issue streams or monitors that should start the workflow.
- Copy the integration's Client Secret and enter it in the connection's Webhook client secret field (edit the connection on the Apps page). Sentry signs every delivery with HMAC-SHA256 over the raw body (the
Sentry-Hook-Signatureheader), and TaskJuice rejects a delivery whose signature does not match the key of the connection it was sent to. Until the key is entered, the trigger panel says so and deliveries to that connection's URL are turned away.
Actions
Issues and events
sentry-app/list-issueslists an organization's issues, optionally narrowed to one project, an environment, a search query (for exampleis:unresolved) and a stats period.sentry-app/get-issuereturns one issue by ID or short ID (for exampleACME-123), with counts and status.sentry-app/update-issueresolves (now or in the next release), ignores, unresolves, reassigns or bookmarks an issue. Send only the fields you want to change.sentry-app/delete-issuedeletes an issue and all its events. Sentry deletes in the background.sentry-app/list-issue-eventslists the events grouped under an issue.sentry-app/list-project-eventslists the error events a project captured.sentry-app/get-eventreturns one event by its 32-character event ID.sentry-app/list-tag-valueslists the values recorded for a tag key on a project, such asbrowserorrelease.sentry-app/list-project-userslists the end users seen in a project's events.
Projects and client keys
sentry-app/list-projectslists every project the token can reach.sentry-app/get-project,sentry-app/create-project,sentry-app/update-projectandsentry-app/delete-projectmanage projects. A new project is created inside a team you pick.sentry-app/create-project-keycreates a client key and returns its DSN, ready to hand to an SDK.sentry-app/list-project-keyslists a project's client keys with their DSNs.
Releases and deploys
sentry-app/list-releases,sentry-app/get-release,sentry-app/create-release,sentry-app/update-releaseandsentry-app/delete-releasemanage releases. Create Release takes the projects it belongs to from a multi-select.sentry-app/create-deployrecords that a release was deployed to an environment, so Sentry can tie new issues to the deploy that shipped them.
Organizations, teams and members
sentry-app/list-organizations,sentry-app/get-organizationandsentry-app/update-organizationread and change organization settings.sentry-app/list-organization-teams,sentry-app/get-team,sentry-app/create-team,sentry-app/update-teamandsentry-app/delete-teammanage teams, andsentry-app/list-team-projectslists a team's projects.sentry-app/list-organization-memberslists the organization's members.sentry-app/list-organization-repositorieslists the code repositories connected to the organization.
Known limitations
- The webhook subscription is manual (see Triggers). Each client organization needs its own internal integration and its own connection.
- The
errorwebhook resource is available only on Sentry's Business and Enterprise plans. On Developer and Team plans, use Issue Alert or Issue Created or Updated instead. - Sentry expects a webhook response within one second.
- List actions return one page. The step's
meta.headers.linkholds Sentry'sLinkheader: thecursor="…"value on itsrel="next"entry is what you pass as Cursor to read the next page, andresults="false"on that entry means there are no more pages. - Dropdowns show the first 100 projects or teams. For a larger organization, map the slug instead.
- Sentry rate-limits per organization and answers
429when you exceed it. TaskJuice retries429responses with backoff.