Hello,
One of the clients for our Jira Atlassian Express Connect add-on is facing the following issue: all operations involving reading Jira data work correctly, however all push operations have the following message in response: “301 - undefined” and the statusCode is 301. Reading/updating Jira issues are performed using basic auth, with user email and API token:
return request({
uri,
headers: {
'Content-Type': 'application/json',
'x-atlassian-force-account-id': true
},
auth: {
user: <email>,
pass: <API token>
},
resolveWithFullResponse: true
})
Jira instance for this client is Jira Cloud (nor server).
Would error “301 - undefined” be returned if API token used in the request is for user who does not have permissions to push data into Jira (create issue, etc)?
Thank you.
Irena Shemesh