I’m developing a Jira Connect App. We use the atlassian-connect-express
.
We set the scopes to ADMIN
in the app descriptor. (initially, we started with READ
)
In the Connect App, we want to create issues. In order to do this, we need to get custom fields for the issue types.
According to developer guides and our past experience, we are trying to use the createMeta
endpoint.
The issue we are facing is that when we use it with the expand=projects.issuetypes.fields
param we always get an empty response. Without the param, it lists all the projects with issue types, but with no fields. We need those fields.
The stage thing is that when we send exactly the same request via REST API (/rest/api/2/issue/createmeta
) with the expand
param using basic
(username, password) auth it works and returns what we need.
In other words:
/rest/api/2/issue/createmeta
endpoint behaves differently for different authentication types.
Basic (username, password): returns all projects with issues types and fields
JWT: Returns empty array
The API documentation for this endpoint says that READ
scope is enough for Connect Apps.
Thanks in advance!