I'm working to make Jira Insight Objects be populated into Forms fields and tried to add a Data Connection to load Insight Objects:
https://api.atlassian.com/jsm/insight/workspace/{workspaceId}/v1/iql/objects?iql={iql syntax}
It's a successful response via Postman but returns 401 Authentication failed error with Form Data Connection (I used the same token with the header: Authorization - Basic {base64 encoded token} via Postman and it works fine).
I retried with a simple Cloud REST API request via the Data connection and it still failed.
Details:
- Successful Cloud REST API call via Postman:
https://{domain_prefix}.atlassian.net/rest/api/3/issue/DJ-1
- Failed call via Forms Data Connection:
The key point difference here is the Data Connection uses the "Bearer" prefix for the Authorization header but the Cloud REST API uses the "Basic" prefix, I can't figure out a way to make these 2 mechanisms work together. I tried with the not encoded Base64 token as well but still does not work.
NOTE: I'm able to make a working Data Connection with Tempo REST API which also uses "Bearer" prefix for the Authorization header.