It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Register Jira Cloud Webhook with REST API Edited

I want to register an JIRA Cloud webhook via REST API (no connect apps). I have gone through the https://developer.atlassian.com/cloud/jira/platform/webhooks/
But it seems that it only supports basic auth during webhook registration.

What I want is to register an webhook with access token in header as 

Authorization : Bearer <access_token>

But when I do post it like above it always returns 401 status code.

Below is the configurations i am trying :

URL :

 https://<subdomain>.atlassian.net/rest/api/3/webhook

Headers : 

Authorization : Bearer <access_token>
Content-Type : application/json

Body : 

{
"name": "my first webhook via rest",
"url": "https://www.example.com/webhooks"
}

 

 

2 answers

0 votes

Hello Prakash and welcome to the Community!

Congratulations on starting the creation of a webhook with Jira cloud. It seems you’ve made it rather far into this process and have run into an authentication problem. While you have stated you’re using a token for authentication, I would be interested to see if this works via basic authentication (The reason for this test is to ensure its not a permission issue we’re running into with the user account you’re using).

Please do let us know what happens when you attempt access while using basic authentication without a token.

Regards,
Stephen Sifers

Hi @Stephen Sifers
I am able to register an webhook via basic auth.

Hello, again Prakash,

Thank you for verifying the call works with basic auth. I went back through the documentation and it does seem that only basic auth is allowed when creating a non-connect app webhook within Jira. I was unable to find any existing feature requests to add this functionality so I have created a new feature request for this. You may find this request at JRACLOUD-71965. I would suggest voting and watching this feature request to receive future updates.

Regards,
Stephen Sifers

Hi, i want to use webhooks to notify teamcity when a issue change of status. It is possible ? 

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted in Jira

Demo Den Ep. 7: New Jira Cloud Reports

Learn how to use two new reports for next-gen projects in Jira Cloud:  Cumulative flow diagram and Sprint burndown chart. Ivan Teong, Product Manager, Jira Software, demos the Cumulative ...

314 views 1 3
Join discussion

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you