In a Connect App, are webhooks registered through REST API and through the atlassian-connect.json descriptor fundamentally different?
When I request registered webhooks with GET /rest/api/latest/webhook I never get webhooks that I registered through a descriptor.
I am doing this because of the assumption that Connect App webhooks must be refreshed every 30 days and I want to refresh those described in the descriptor.
Do descriptor webhooks need to be refreshed or are they more like the "install", "uninstall", "enable", and "disable" events that are, and I quote, essentially webhooks?
I know this is an old thread but, in case anyone will find it in the future:
The webhooks registered in the app descriptor are different to the ones registered through the API.
Webhooks like create page in Confluence or create issue in Jira are registered through the REST API and need to be refreshed as they are referred to as beng dynamic webhooks. You can use the Extend webhook life REST API to add extra time to the life of the webhook.
The webhooks registered in atlassian-connect.json for app lifecycle do not need to be re-registered every 30 days. Are they are a different part of the system, they also are not returned via GET /rest/api/3/webhook.
If you need to refresh the webhooks in the descriptor (that is, change them) then you need to release a new version of your app on Marketplace or, for a private app, re-install the app.
The webhooks created via REST API and the one from the add-on descriptor are basically the same thing. It is just the different ways of registering it. To refresh it, you can call this endpoint.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
That endpoint is my exact problem. In order to refresh the descriptor webhook I need its ID, which I can't get with the endpoint which returns all of the registered webhooks. I don't know why, or if it's a bug, but the descriptor webhook just isn't one of the returned ones.
I would happily register all of my webhooks via REST API but REST API webhooks don't support project events, descriptor ones do.
Descriptor webhooks also don't require the webhook to be tied to a specific JQL filter, which is what I need.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Probably you can ask more about this from https://developer.atlassian.com/support
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.