{"fields":{"reporter":{"accountId":"sumanrout198"},"description":"This is the description","project":{"key":"JIRA"},"issuetype":{"name":"Bug"},"summary":"New Bug","priority":{"id":"5"},"fixVersions":[{"id":"10000"}]}}
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.