Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Dynamic webhooks not working

MukulA
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
June 21, 2023

Hello,

I used these APIs to register the dynamic webhooks for a JIRA project but I am not getting any notifications for any change event. For the purpose of demonstration, I created the OAuth 2.0 apps and assigned the required permissions/scopes. The request to register the webhook is also successful as below and GET API to fetch the dynamic webhooks returns the expected response with the webhook IDs. 

Request:

POST https://api.atlassian.com/ex/jira/<cloud ID>/rest/api/3/webhook 

{
  "url""<callback URL>",
  "webhooks": [
    {
      "events": [
        "jira:issue_created",
        "jira:issue_updated",
        "jira:issue_deleted"
      ],
      "jqlFilter""project = <project name>"
    }
  ]
}
Response:
{
    "webhookRegistrationResult": [
        {
            "createdWebhookId"<>
        }
    ]
}
I used Get failed webhook API to debug but that's also failing with the below error even though the app has all scopes mentioned in the error. 

RESPONSE"
{
    "errorMessages": [
        "Access to the resource was denied due to missing scope grants. Your app was granted the following scopes: [write:webhook:jira, read:jql:jira, read:field:jira, delete:webhook:jira, validate:jql:jira, read:project:jira, read:webhook:jira, write:field:jira, write:project:jira, delete:field:jira, delete:project:jira].\nThe resource can be accessed by having one of these groups of scopes:\n  * [read:jira-work, manage:jira-webhook]\n  * [read:issue-details:jira, read:webhook:jira, read:comment.property:jira, read:group:jira, read:issue-type:jira, read:project-role:jira, read:epic:jira-software]\n"
    ]
}
TIA!

0 answers

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events