Getting error (API-3181) api access is not permitted when trying to use Polaris GraphQL endpoints

Hi,

I’m trying to make the GraphQL APIs for insights in Jira Product Discovery work.

I have used the sample at polaris-forge-ref-app/get-insights-example at master · Jira-Product-Discovery-Integrations/polaris-forge-ref-app · GitHub and separately in Postman, and using this GraphQL query (with appropriate variables):

query getPolarisInsights($project: ID!, $container: ID) {
    polarisInsights(project: $project, container: $container) {
        snippets {
            id
            oauthClientId
            data
            url
            properties
        }
        id
    }
}

I get the error:

{
    "errors": [
        {
            "message": "(API-3181) api access is not permitted",
            "locations": [],
            "path": [
                "polarisInsights"
            ],
            "extensions": {
                "errorSource": "UNDERLYING_SERVICE",
                "statusCode": -1,
                "classification": "DataFetchingException"
            }
        }
    ],
    "data": {
        "polarisInsights": null
    },
    "extensions": {
        "gateway": {
            "request_id": "fc0ce4310cd340c78369c70913d3720d",
            "crossRegion": false,
            "edgeCrossRegion": false
        }
    }
}

Is there something that has to be enabled somewhere to make these endpoints work?

Thanks!

  • Chris

Welcome to the Atlassian developer community @ChrisLloyd1,

While you can find these resources in the GraphQL schema, they are not available for public consumption at this time. The product managers are aware but there is no schedule for providing API access to JPD beyond what is possible via the Jira platform itself.

Thanks for getting back to me Ian - so I understand you correctly, there’s not then a way to push insights into ideas via an API?

If that’s the case, it seems like the next best option would be to push equivalent evidence for an idea in as a comment. But if you have a better idea please let me know :slight_smile:

Agreed because comments are available via the Jira platform layer.