I know this has been asked countless of time. Unfortunately I still can't get it to work. So my apologies in advance.
I'm trying to create a sub-task from an existing EPIC ticket which has a key value of ABC-123. My curl command is below.
curl -D- -u user:user -X POST --data {"fields":{"project":{"key":"ABC-123"},"summary":"Sub-task of ABC-123","description":"Don't forget to do this too.","issuetype":{"id":"5"}}} -H "Content-Type:application/json" https://localhost:8080/rest/api/2/issue
..and this is the error I'm getting
{"errorMessages":["Unexpected character ('f' (code 102)): was expecting double-quote to start field name\n at [Source: org.apache.catalina.connector.CoyoteInputStream@5db919f1; line: 1, column: 3]"]}