Working with JIRA Webhooks

A webhook is a user-defined callback over HTTP. We can use webhooks to notify third-party applications when an event happens in JIRA. This is a great functionality as it can be used to integrate JIRA with third-party applications without even writing a single line of code.

All we need to do is to configure a webhook, based on the appropriate JIRA event, and then invoke the third-party application's remote API over HTTP.

For example, you can trigger a build in Bamboo or create a pull request in Stash when a JIRA issue moves from one state to another.

How to do it...

The following are the details required for configuring a webhook:

  1. Name: Name of the webhook.
  2. URL: URL to send the callback.
  3. Scope: Scope of the webhook. We can apply ...

Get JIRA Development Cookbook - Third Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.