Hy everyone,
I'm trying to create an issue using the API (v3) on a project where the permission to create a ticket are not set. Everyone can create a ticket.
When i'm doing a request post on:
https://mycompany.atlassian.net/rest/api/3/issue
with the following body
{
"update": {},
"fields": {
"project": { "id":myId"},
"issuetype": { "id": 10100 },
"summary": "test creation ticket jira par api",
"description": {
"type": "doc",
"version": 1,
"content": [ { "type": "paragraph",
"content": [ { "text": "ceci est un nouveau ticket jira créer par api avec le compte de xxx.", "type": "text"
}
]
}
] },
"reporter": { "id": "reporterId" } }
}
i'm getting this result: { "errorMessages": [ "Internal server error" ], "errors": {}}
If i add to this request a basic auth with my mail and my token id (i have jira account permission) the issue is properly created with the correct reporter, the one passed on the body and not me.
I read some issue related to this on this support channel but it was missing the permission part.
Am I missing something on my body request. Is it possible to create an issue without basic auth even if there is no pemission set on issue creation?
Thanks in advance for every response.