Forums

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

Getting Internal Server Error while Creating Issue/Bug through API

Suman_Rout
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!
May 19, 2020

{"fields":{"reporter":{"accountId":"sumanrout198"},"description":"This is the description","project":{"key":"JIRA"},"issuetype":{"name":"Bug"},"summary":"New Bug","priority":{"id":"5"},"fixVersions":[{"id":"10000"}]}}

1 answer

0 votes
Andy Heinzer
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
May 27, 2020

Hi Suman,

If I understand the problem here, you are trying to send this data payload to the Jira create issue endpoint of the REST API, but you seem to be getting some error.  I would be interested to see what that exact error looks like.

Try creating the request without specifying the reporter.  This isn't typically necessary to explicitly state in the data payload, as the user that is authenticated here is automatically being selected as the reporter anyways.  You could also try to remove the other fields being specified here, technically you only are required to provide the project, issue type, and a summary at a minimum.   Your data payload might look something like this:

{"fields":"description":"This is the description","project":{"key":"JIRA"},"issuetype":{"name":"Bug"},"summary":"New Bug","priority":{"id":"5"}}

If this is still generating an error, I'd be interested to see the exact response you get here and I also want to know which method you are using to authenticate here (Basic auth, OAuth, etc).

Please try this and let me know the results.

Andy

Suggest an answer

Log in or Sign up to answer