Forums

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

Webhook events not delivered for comments

Jeff Haynie January 28, 2022

We are trying to get webhook events from comments (create, update, delete). I can't seem to get any comment related events to fire no matter what i try.  Other issue events fire OK.

Example request:

 

{

  "url": "https://webhook.site/7e5af5b2-b1bb-4dfd-ad4d-0a476201cb8e",

  "webhooks": [

   {

      "jqlFilter": "project = TEST",

      "events": ["comment_deleted"]

   }]

}
I'm using OAuth 2.0 Bearer token. When I create the jira:issue_created event it fires OK.  Using the above (or variations with comment_created, comment_updated etc) never fire no matter how i test creating, updating or deleting comments on an issue.  Also, I've tried all variations of jqlFilter including the issueKey itself, etc.  
It seems like the restricted fields for the JQL filter aren't even on the comment payload but I can't verify anything since it never delivers.  There is no documentation related to issue comments I can find anywhere on the internet or any examples digging through discussions or in Jira itself.

 

1 answer

1 accepted

1 vote
Answer accepted
Jeff Haynie January 28, 2022

i ended up adding some additional oauth scopes to the app and it seems to now work.

Jaswanth Boyidi name January 31, 2022

Hi @Jeff Haynie 
we are facing a similar issue can you tell us, what were additional scopes you have added to the app

Jeff Haynie January 31, 2022

we added these scopes

["'read:project-role:jira', 'read:issue-type:jira', 'read:comment.property:jira', 'read:group:jira'"]

 

Not sure why but must have been related to the webhook we were registering. The DX for all of this is just terrible.  Documentation is terrible and errors don't mean anything.

Omar Duarte March 1, 2022

@Jeff Haynie 
Can you please share which other scopes you have?

I have the same issue and already use all of the same scopes that you mentioned above.

 

I agree what you mean about the DX with this. It's astonishing this got released in this state.

Omar Duarte March 1, 2022

Found the answer myself.

 

Look at the table in https://developer.atlassian.com/cloud/jira/platform/webhooks/#using-the-rest-api--registration

It's a few parragraphs below

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
TAGS
AUG Leaders

Atlassian Community Events