Hi Everyone 👋
I’m setting up an integration from a deployment tool (Capistrano) to Jira Software Cloud using the Deployments API, and I’m running into a strange OAuth 2.0 scope issue.
Here’s what I’ve done:
In Jira Cloud Admin, I went to Settings → Marketplace apps → OAuth credentials → Create new credentials.
I entered a name, server base URL (https://oursite.atlassian.net), and added an internet-sourced logo.
Under Permissions, I only selected Deployments (unchecked Builds, Development information, Feature flags, and Remote links).
I saved the credential and copied the Client ID and Secret.
I requested a token using the client credentials flow:
POST https://api.atlassian.com/oauth/token
{
"grant_type": "client_credentials",
"client_id": "<client_id>",
"client_secret": "<client_secret>",
"audience": "api.atlassian.com"
}The request succeeds, but the returned scope is:
"scope": "manage:jira-data-provider"instead of the expected:
"scope": "write:deployment-info:jira"When I use that token against the Deployments endpoint:
POST https://api.atlassian.com/jira/deployments/0.1/cloud/<cloudId>/bulkI get:
[{"message":"The request failed: Could not get devops record for cloudId <id>"}] This credential was created through Settings → Marketplace apps → OAuth credentials.
Only Deployments is checked under permissions.
The credential is shown as “Installed – done” in the Jira Admin UI.
The cloudId is correct (confirmed via the /_edge/tenant_info API).
Is this a known issue where OAuth credentials with Deployments permission incorrectly return the manage:jira-data-provider scope?
Or am I missing an additional configuration step?
Ultimately, I’m just trying to report deployments from Capistrano into Jira Software’s Deployments view.
Recommended Learning For You
Level up your skills with Atlassian learning
Atlassian DevOps essentials
Learn how to build, automate, and improve DevOps processes used for the development and delivery of software and other digital products.
Tracking and improving DevOps metrics
Make informed decisions about current and future projects and deadlines to maximize your team's productivity and keep morale high.
Exploring Atlassian Cloud products for agile and DevOps
Coordinate a suite of Atlassian Cloud products for greater collaboration and trust, higher-quality solutions, faster releases, and more.