This is the url I'm using: https://xxxx.atlassian.net/rest/api/latest/issue
and this is the payload I got from an example on the net, I only changed the project key:
{"fields":{"summary":"TEST SUMMARY","issuetype":{"name":"Bug"},"project":{"key":"ET"}}}
BTW, I got the project key from /project/search:
{
"total": 1,
"isLast": true,
"maxResults": 50,
"values": [{
"avatarUrls": {...},
"entityId": "...",
"isPrivate": false,
"uuid": "...",
"expand": "description,lead,issueTypes,url,projectKeys,permissions,insight",
"simplified": true,
"name": "...",
"self": "https://....atlassian.net/rest/api/2/project/10000",
"style": "next-gen",
"id": "10000",
"projectTypeKey": "software",
"key": "ET",
"properties": {}
}],
"self": "https://....atlassian.net/rest/api/latest/project/search?maxResults=50&startAt=0",
"startAt": 0
}
I also checked I have access to create issues using /mypermissions?permissions=CREATE_ISSUES
"CREATE_ISSUES": {
"havePermission": true,
"name": "Create Issues",
"description": "Ability to create issues.",
"id": "11",
"type": "PROJECT",
"key": "CREATE_ISSUES"
}
I followed the authentication tutorial here: https://developer.atlassian.com/cloud/jira/platform/jira-rest-api-oauth-authentication/
... and based my code on the examples here: https://bitbucket.org/atlassianlabs/atlassian-oauth-examples/src/master/
Any ideas? Thanks 