How to automatically create Jira issues from Sentry errors

You connect Sentry to Jira, set up an alert, go looking for the action that files a Jira issue, and it isn't there, or it's there and greyed out. The Jira integration works on your plan. Automatic issue creation doesn't.

Here's what each Sentry plan can actually do with Jira, and the ways to get errors filed automatically without changing plans.

1. What Sentry's own Jira integration does on each plan

So if you're on Team, every Jira issue for an error is one somebody remembered to create. If you want it to happen without anyone clicking, Sentry's answer is a plan upgrade. Check Sentry's pricing page for the current difference.

2. Build it yourself with a webhook

Every Sentry plan can send an alert to a webhook. Sentry calls it an internal integration: you give it a URL, connect it to an alert, and Sentry posts a JSON payload each time the alert fires. Point that at something that can create a Jira issue and you have auto-create on any plan.

It works, and it's a weekend if you've done this kind of thing before. The parts that take longer than you'd expect:

3. Use an app that does the webhook part for you

We make one called Triage for Jira. It's the webhook approach above, built and running inside your own Atlassian site, so there's no server for you to host.

Setting it up takes about ten minutes:

  1. Install Triage for Jira from the Atlassian Marketplace and create a connection. It gives you a webhook URL.
  2. In Sentry, create an internal integration with that URL, and paste its Client Secret back into the app.
  3. Connect an alert on your project's error monitor to the integration.
  4. Turn the app on for your Jira project and write a rule.

The setup guide covers each step, including the two people usually miss. It's free for Jira sites of ten users or fewer. Above that it's priced per Jira seat through the Marketplace.

Good to know