I am trying to create a webhook with the REST api with a Connect App. My app has the `admin` scope. I am sending a post request to `baseUrl/rest/webhooks/1.0/webhook` with the following payload structure:
"issue-related-events-section": "Project = JRA AND resolution = Fixed"
"excludeBody" : False
Each time I send a request I get a `403 - Forbidden`. I can access the `/rest/api/2/` endpoint with the sharedSecret using jwt authentication.
Edit: Little clarification, I am trying to use jwt authentication to create a webhook, not user/pass auth.
please, look at this article - there are a few tips, what can you do: https://community.atlassian.com/t5/Jira-questions/403-Forbidden-on-POST-method-of-rest-api-2-issue-however-get/qaq-p/51425
Did you try to add WRITE to scopes?
I've tried to use the provided payload a create the webhook using groovy script and everything works fine.
Introducing Jira Cloud for Excel Here at the product integrations team at Atlassian, we are thrilled to announce the new Jira Cloud for Excel add-in! This add-in lets you export Jira data directly ...
Connect with like-minded Atlassian users at free events near you!Find an event
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.Host an event
You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events