Webhooks for Jira
  • 1 Minute to read
  • Dark
    Light
  • PDF

Webhooks for Jira

  • Dark
    Light
  • PDF

Article Summary

Panaya's Automation Rules Center supports using Webhooks to send automated messages to a 3rd party applications such as Jira.

Before you continue
  • Create an access token in Jira for a general user creating Jira bugs.
  • Encrypt the username (email) and the token to base64, as described in this article.
  1. Create a new automation rule in Panaya
  2. Define the rule as follows - 
    • Web request URL - https://yourdomain.atlassian.net/rest/api/3/issue (use your own Jira domain)
    • Add Headers - 
      • Content-Type - application/json
      • Accept - application/json
      • Authorization - Basic <TOKEN>
    • HTTP method - Post
    • In the text box, paste the full payload according to the instructions provided here.
      To retrieve your project id from Jira, log into Jira and run the following API in the browser bar -
      <JIRA_BASE_URL>/rest/api/latest/project/<project_key>
      If you do not provide the project_key, it will return all projects. It can be helpful to paste the JSON output into a JSON beautifier to improve readability. Learn more


Debugging

You can validate the automation rule and webhooks setup by running the "Validate your web request configuration" on one of the defect IDs you have in your system. It should create the Jira bug instantly. If there are any issues, the validate section will indicate the problem.