Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Cannot create issue via service desk API

Ramiro Castro October 27, 2017

Getting this error:

 

was expecting double-quote to start field name

at [Source: org.apache.catalina.connector.CoyoteInputStream@8cc2e54; line: 1, column: 3]</message><stack-trace>org.codehaus.jackson.JsonParseException: Unexpected character ('â' (code 226)): was expecting double-quote to start field name

here is my curl syntax: 

curl --request POST --user u:p  --header "Cn/json"  --data '{“raiseOnBehalfOf": “<username”, "requestFieldValues": {“summary”: "Request test API”}, "requestTypeId": “<id>”, "serviceDeskId": “<id>”}}' --url 'https://<instanceurl>/rest/servicedeskapi/request'

 

*Update:* This ended up fixing it: 

 

curl --request POST --user u:p  --header 'Accept: application/json' --header 'Content-Type: application/json' --data ' {"raiseOnBehalfOf": “<username>”, "requestFieldValues": {"summary": “test”}, "requestTypeId": "<id>”, "serviceDeskId": <id>}' --url 'https://<instanceurl>/rest/servicedeskapi/request'. Now on to custom fields. 

1 answer

1 vote
edwin
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
October 27, 2017

Hi Ramiro,

There is two {{ and three }}}. Maybe that is the issue.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events