How to check if the Incoming webhook trigger in an Automation rule is working correctly

Platform Notice: Cloud Only - This article only applies to Atlassian products on the cloud platform.

Summary

How to check if the Incoming webhook trigger in an Automation rule is working correctly

Solution

You can perform a quick check by triggering a webhook event by sending a POST request via cURL or POSTMAN and checking if that triggers the Automation rule. To check with any of the methods below, first Go to your Automation Rule > Incoming Webhook component > Copy the Webhook URL.

Check using cURL

1 2 curl -X POST -H 'Content-type: application/json' \ <Insert_webhook_URL>

Executing the above cURL command in a terminal will return a null, After that check the automation rule Audit log to see if the rule has run. Check using POSTMAN

In POSTMAN you can simply open a new request tab,

  1. Change the request type to POST,

  2. Paste the Webhook URL in the URL section as you see in the screenshot below

  3. Hit Send.

    Sent request to webhook using Postman
  4. You can see the 200 response code in Status meaning the POST request was successful.

After this check the Audit log of the automation rule to check if the rule has run.

If the automation rule is triggered using any of the above methods it gives a confirmation that the Incoming Webhook component is working as expected.

Information

At this point, you can check your source application which sends the webhook event to see if the application is actually sending any request to the webhook URL and If yes, what response code was returned to the source application when attempting to push to the Webhook URL.

Updated on May 31, 2024

Still need help?

The Atlassian Community is here for you.