Forums

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

Setting up an automatic webhook to track sprint events

frastsytt
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
September 6, 2023

Hello Atlassian Community!

I am in the process of making a Forge app that requires me to have a webhook set up to track sprint related events (maybe a webhook isn't even the best idea to track these events, I'm open to ideas). My idea was to create a trigger in my manifest.yml that fires under these two conditions:

- avi:forge:installed:app
- avi:forge:upgraded:app

And have this trigger a function that makes a REST request as the application to check if my custom webhook exists yet, if it does not, create one.

However I ran to multiple problems testing out various solutions.

a) await api.asApp().requestJira(route`/rest/webhooks/1.0/webhook`) tells me that OAuth 2.0 is not enabled

b) fetch(route`/rest/webhooks/1.0/webhook`) tells me that the resource is forbidden as I am not supplying any authentication(the requester would be the application).
c) REST api v3 and v2 (/rest/api/3/webhook) do not allow me to supply sprints as events to be tracked

None of these solutions seem to be correct and I'm all out of ideas. Am I doing something wrong? If creating the webhook that I need is not possible through conventional means, are there any hacky workarounds that I could still achieve it with?

0 answers

Suggest an answer

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

Atlassian Community Events