This integration will allow you to link a Raygun error group to a new or existing Bitbucket issue.

On this page:

Setup Instructions

  1. Log in to both your Bitbucket and Raygun accounts. In Raygun, in the application sidebar, click on Integrations, then Bitbucket:

  2. Click the Setup tab, then click the blue ‘Bitbucket’ button to grant access to Bitbucket:

  3. When prompted, enter your Raygun email address and password.

  4. Select which repository you want the issues to be delivered to, click ‘Enabled’ then ‘Save Changes’.

  5. If you’re using Bitbucket error tracking: View an error group in Raygun Crash Reporting and you’ll notice an ‘Integrations’ dropdown option. Click on ‘Integrations’ and pick Bitbucket to create a new issue for the error, or link with an existing one:


Issue tracking

To connect Raygun error groups to issues in Bitbicket, or create new issues in in Bitbucket from an error group, you need to have Bitbucket issue tracking enabled.

This setting is found by going to your repository in Bitbicket, clicking the ‘Settings’ on the left sidebar, then clicking the ‘Issue tracker settings’ option under the ‘Issues’ heading. You can then chose your issue tracking options:

If the issue tracker settings are set to ‘No issue tracker’, you will not be able to create or link any Bitbucket issues and an error message will appear:

Deployment tracking

The Bitbucket integration supports deployment tracking, which means:

  • More detailed deployment information
  • Ability to link your commits and release notes directly from Raygun to your source code

You do not need Bitbucket issue tracking to use this feature.

Create a webhook in Bitbucket

By using a webhook, resolving issues in Bitbucket will also resolve the linked Raygun error groups. Here’s how to create a webhook in Bitbucket so you can get those error groups resolved in no time!

Setup instructions:

  1. Login to Bitbucket and ensure you are a repository administrator
  2. Navigate to the repository linked to your Raygun application
  3. Click on ‘Settings’ located the left sidebar
  4. Click on ‘Webhooks’ located under the ‘Integrations’ section
  5. Click on the ‘Add webhook’ button
  6. Give your webhook a ‘Title’
  7. In the ‘URL’, copy and paste the ‘JIRA Webhook URL’ found in your Raygun Jira Setup tab
  8. Mark the ‘Status’ as ‘Active’
  9. Leave the ‘SSL / TLS’ unchecked
  10. Set the ‘Triggers’ to ‘Choose from a full list of triggers’
  11. Check the ‘Updated’ checkbox under ‘Issue’
  12. Your settings should look like this:
  13. Click ‘Save’

Learn more about Bitbucket webhooks