Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Creating an issue with POST request problem

Moemen Dhifallah
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
March 2, 2023

So, whenever I try to create an issue with the POST /rest/api/2/issue request, I get the "500 internal server error" and this is the request body I am adding:

{
"fields": {
"project": {
"key": "MOEMEN"
},
"summary": "Test 1",
"issuetype": {
"name": "Task"
},
"reporter": {
"accountId": "63fcd14e9cba7ca02876eac6"
}
}
}

Who knows a solution for this problem?

1 answer

0 votes
Matthias Gaiser _K15t_
Community Champion
March 2, 2023

Hi @Moemen Dhifallah

welcome to the Atlassian Community.

Your request looks basically fine. The only problem I could see might be the reporter and the accountId. Can you try to create an issue without specifying a reporter?

If this works, you might want to check if the accountId is correct.

Cheers,
Matthias.

Moemen Dhifallah
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
March 2, 2023

So when I try to create an issue without specifying a reporter I get this error:

"errors": { 1 item

"reporter": string "Reporter is required."

 I am sure of the accountId cause I worked with it in the PUT request and I modified reporters

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events