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!