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"
}
Hi, i want to use webhooks to notify teamcity when a issue change of status. It is possible ?
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.