You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
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.
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.