Hi, I’m relative new to Jira app-development and again a ‘hand raise’ about the topic webhook - REST.
I read a lot in this community forum and of course the documentation GET-webhook
It seems I miss something!
I have a Connect-App (installed private atm. (REACT - TypeScript))
atlassian-connect.json:
…
“scopes”: [“READ”, “WRITE”, “PROJECT_ADMIN”, “NONE”],
…
Everything is working well, I get issue informations, able to update (PUT) issue-fields where I have to do this (timetracking - estimatedTime) and further things.
One of the last things to integrate is webhooks (GET - POST - DELETE - REFRESH).
I stuck already at GET (of course the others too).
What I do:
AP.request({
url: "/rest/api/3/webhook",
type: "GET",
contentType: "application/json",
})
Answer: 403 - “Only apps can access this resource.”
Docu: ‘Returned if the caller isn’t an app.’
I don’t get the point.
It is an installed connect-app, I can control my modules, if my App is not the selected timetracking app for Jira, my modules in the issue are not shown. Works well!
And using ‘AP’ in my opinion should do the trick with Authorization for the request.
The only thing I do not have installed in my App is ACE (atlassian-connect-express ACE ) lib.
But I did not found any point, that it is recommended for exact that point (webhooks), also when everything else working as expected.
Hope you can give me the one thing I miss out and hopefully it is not ACE!
Thanks and greetings
Markus