Hi everyone.
I am able to use the CURL get command to GET an issue from JIRA server.
curl -D- -u test:test123 -X GET -H "Content-Type: application/json" http://x.x.x.x:7070/issue/rest/api/2/search?jql=key+in+('TEST001')+AND+project+in+('projectname')
This works fine. It returns the actual issue on the shell prompt the output.
But when it comes to a POST instruction,
I did the following :
curl -D- -u test:test123 -X POST --data @send.json -H "Content-Type: application/json" http://x.x.x.x:7070/issue/rest/api/2/issue
And inside my send.json, I had the following:
{"project":{"key":"projectname"},"summary":"Testing REST API","issuetype": {"name": "Task"}}
But I get the error even though my JSON text is properly formatted. The :
{"errorMessages":["Internal server error"],"errors":{}}
Any ideas why?