The Jira Dev Ops Components are accessible via the REST API as documented here, but unfortunately “These APIs are available to Atlassian Connect apps.”
While trying to access the API using Forge with:
await api.asUser().requestJira(route`/rest/devopscomponents/1.0/{id}`)
It results in a 401 Unauthorized
error.
Additionally, the GraphQL Explorer can be used to access these components, but the same query fails when using requestGraph
using Forge due to a 403 error.
This is problematic because every new Compass component creates a Dev Ops Component, and the Compass component can’t be deleted until the corresponding Dev Ops Component is deleted first.
Is there a programmatic way from Forge to access these components?