Forums

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

Incorrect Scope Errors When Creating Webhook for Sprint Updates via POST AP

snehilsankalp
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!
June 15, 2024

I'm currently working on setting up a webhook to receive sprint updates through the Atlassian API using a POST request. However, I'm encountering issues with scope permissions, specifically receiving "incorrect scope" error

Api endpoint - rest/webhooks/1.0/webhook

{

  "name": "Sprint Update Webhook",

  "url": "https://myserver.com/webhook",

  "events": [

    "jira:issue_updated",

    "sprint_updated"

  ]

}

 

1 answer

0 votes
Jason Kaufman
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!
July 11, 2024

Based on the information provided, it seems you're encountering scope permission issues when trying to create a webhook for sprint updates. Here are some key points and suggestions to address this:

  1. Required Scopes:
    • To create a webhook, your app needs the manage:jira-webhook scope.
    • For the jira:issue_updated event, you also need the read:issue-details:jira scope.
    • For sprint-related events, you may need additional scopes related to Jira Software features.
  2. Sprint Events:
    • The sprint_updated event you're trying to use is not a standard Jira webhook event. Instead, you should look for Jira Software-specific events related to sprints.
  3. Correct Event Names:
    • Ensure you're using the correct event names as defined in the Jira API documentation. For sprint-related events, you might want to look into Jira Software-specific webhook events.
  4. Permissions:
    • Make sure the user or app making the API request has the necessary permissions. Typically, admin-level access is required to create webhooks.
  5. OAuth 2.0 or Connect App:
    • Ensure you're using either an OAuth 2.0 or a Connect app, as these are required for registering webhooks dynamically via the REST API.
  6. API Endpoint:
    • The endpoint you're using (rest/webhooks/1.0/webhook) seems correct, but double-check it against the latest Jira API documentation.

Suggestions:

  1. Review your app's scopes and ensure all necessary ones are included, especially those related to Jira Software and sprint management.
  2. Check the Jira Software documentation for the correct event names related to sprint updates.
  3. Verify that your authentication method (OAuth 2.0 or Connect app) is correctly set up with the required scopes.
  4. If you're not an admin, consult with your Jira administrator to ensure you have the necessary permissions.
  5. Consider using the Jira Software REST API documentation to find the correct endpoints and event names for sprint-related webhooks.

Suggest an answer

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

Atlassian Community Events