Webhooks can be an extremely powerful tool that can be configured to trigger an immediate re-index of your repositories from remote systems. Your git server can send this near real-time data to Jira when your git data changes. This results in much faster indexing time so that you don’t have to wait for the regular polling interval (see General settings).
Webhooks can be triggered whenever certain actions are performed. For example, you can configure a webhook to execute when:
new commit is pushed
pull request is opened
branch is merged
You can create webhooks for individual repositories or most git providers will allow you to create webhooks at an account-level or org-level.
Do I need to set up webhooks?
Short answer is no, the regular reindexing configured in General settings by the Jira administrator is the base requirement for indexing. However, by configuring webhooks to trigger reindexing, Jira will more often have up-to-date information. The normal frequency of the app limits this by polling at set intervals.
Without webhooks, you will rely on the default polling of the app which is unchangeable by non-Jira administrators. Jira users will have to wait for the default interval for updates which means users will not see new commits or pull requests until the next indexing interval.
Important To use the webhooks feature, it must be enabled in the Manage (Git) repositories page.
Configure webhooks to trigger immediate reindex of your repositories from remote systems.
From your Jira dashboard, go to menu Git ➜ Manage repositories. On the sidebar, under Git Integration for Jira, click Webhooks.
Enable/disable the webhook feature by clicking on the Enabled/Disabled option.
Copy the webhook URL to the system clipboard by clicking the copy icon adjacent to the right. Use this URL when required by the repository web hooks setting of your git host.
The Secret Key is a secure random-generated alphanumeric string at the time of the Git Integration for Jira app installation. The user can change this to a different value by generating another secret token according to your Git host.