How to set up a webhook in JIRA
JIRA webhooks allow your JIRA to indicate that an issue was changed, so HockeyApp can update the status of the corresponding crash group automatically. Note that this requires JIRA 5.2 or newer.
Follow these steps to set up the webhook:
- Click on your app on the dashboard, then on Manage App > Bug
- If not already done, configure your JIRA instance.
- After successfully authenticating against JIRA, copy the webhook URL from the HockeyApp page for JIRA settings to your clipboard.
- Sign in with an admin account, then select Administration >
- Click on Webhooks in the left sidebar, then on Create a
- Fill in a name, e.g. "HockeyApp Webhook".
- Paste the copied URL in the URL field.
- Enable the option Exclude issue details from the POST to
URL. (see below).
- Enable the event Issue Updated.
- Click on Create to save the webhook.
Your configuration should look similar to this screenshot:
As described in step 8, please enable the option Exclude issue details from the POST to URL in the webhook configuration. This ensure that no data other than the issue key (e.g. APP-001) is posted to HockeyApp. After the webhook is called, HockeyApp checks if the issue key exists in HockeyApp and is connected to a valid tracker configuration. Only then it fetches the issue status from JIRA.
The webhook configuration allows you to set a JQL query which is evaluated before the webhook is called. The following query can be set to filter the issues for the project with the key APP:
Details on JQL can be found in the JIRA configuration.
JIRA field errors indicate that you likely have custom fields marked as mandatory in your JIRA instance that will need to be set to optional in JIRA instead since HockeyApp cannot set them.
JIRA authentication errors indicate that you likely specified your e-mail address instead of your JIRA username. (You can find your username in JIRA by clicking on your avatar in the top-right corner, and then clicking on "Profile").