I am working on changing our apps to use basic auth with an API Token per Jira's deprecation notice, but GET create meta returns an empty array:
curl -D- \ -u fred@example.com:freds_api_token \ -X GET \ -H "Content-Type: application/json" \ https://your-domain.atlassian.net/rest/api/3/issue/createmeta
# => {"expand":"projects","projects":[]}
and a POST request to create an issue returns an error response similar to when the user does not have admin permission to edit the screen:
"Field <field name> cannot be set. It is not on the appropriate screen, or unknown."
However, the supplied user name definitely has admin permission.
I have also tried this with the Base64 encoded user:token in the Authorization header
but I get the same responses.
Any help would be much appreciated.
For anyone who lands here, there is an important caveat to Jira API Tokens: they will have the same permission level as the user who creates them.
I just ran successful curls to our Endpoint using an API Token created by an admin user, AND the user's full email address.
Issue resolved.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.