Forums

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

Jira Webhook Refresh

jiraIntegration101 October 31, 2019

Hi. I have a problem with webhook refreshing. I'm using Rest API for other integration.

As it written in documentation every webhook created by Rest API should be refreshed every 30 days, otherwise they expire. 

I found no refresh endpoint for my case (other integrations). Will it extend webhook expire date if I make http put on  https://yourdomain.atlassian.net/rest/webhooks/1.0/webhook ?

2 answers

1 accepted

0 votes
Answer accepted
Dario B
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
November 1, 2019

Hello @jiraIntegration101 ,

Welcome to the Atlassian Community!

I am not sure I have a correct understanding of what you are asking for.

Is it that you have some webhooks registered in your Jira but not all of them are returned when calling the GET /rest/api/2/webhook endpoint or anything else? Can you kindly provide more details?

Specifically, make sure to clarify:

  1. What do you mean with "other integration"? (Do you mean that you are not building an app but just using webhooks and REST APIs to integrate with other systems or anything else?)
  2. What do you mean with "I found no refresh endpoint"? 

 

Cheers,
Dario

jiraIntegration101 November 1, 2019

Hello @Dario B , thanks for fast answer.

I'm just using webhooks and REST APIs to integrate with other system.   

other_integrations.png

I have registrated webhook and according to documentation I need to refresh it once in 30 days.

refresh.png

I found only one endpoint to do it, but it requires connect apps permission.

I don't need to create connected app. So how I can solve this problem?

refreshEndpoint.png

 

What if make PUT /rest/webhooks/1.0/webhook/{webhookId} ?

Will this refresh my webhook ?  If not what should I do?

Dario B
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
November 1, 2019

Hi @jiraIntegration101 ,

Thanks for clarifying, I was not sure this was indeed the case.

The documentation is a bit unclear indeed, but please notice that the REST API endpoint that you use to register webhooks for "other integrations" is different than the one used to register connect apps and does not need to be refreshed.

This is mentioned in the section named "Registering a webhook":

 

And indeed:

 

So, to summarize: it is not needed to refresh webhooks that have not been created from a Connect App. 

 

Cheers,
Dario

jiraIntegration101 November 4, 2019

@Dario B awesome, thanks :)

Like Dario B likes this
Dario B
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
November 5, 2019

You are very welcome! :)

Please do not hesitate opening another thread in case of any other question or concern.

Cheers,
Dario

0 votes
sime_vukasovic August 4, 2022

To piggyback off of this, 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?

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events