Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,644,716
Community Members
 
Community Events
196
Community Groups

Do Connect App webhooks created with a descriptor need to be refreshed?

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?

2 answers

0 votes
Dario B
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
Sep 13, 2023 • edited

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.

 

0 votes
Prince Nyeche
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
Aug 17, 2022

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.

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.

Prince Nyeche
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
Aug 18, 2022

Probably you can ask more about this from https://developer.atlassian.com/support 

Suggest an answer

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

Atlassian Community Events