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

How create service desk request via API on Php?

LevI March 31, 2016

My request looks like this:

url:
    https://blabla/rest/servicedeskapi/request

headers:

   [0] => Content-Type: application/json
   [1] => Content-Length: 164
   [2] => X-ExperimentalApi : true
method: POST
 

request body: 

{"serviceDesk":2,"requestType":3,"requestFieldValues":{"summary":"test","description":"test"},"requestParticipants":["servicedesk"]}

and i catch an exception 'Unrecognized field "serviceDesk"':
http://joxi.ru/p27LWDVt8bl1A7

1 answer

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

0 votes
Dariusz Stefanski
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
August 12, 2016

Please look at https://docs.atlassian.com/jira-servicedesk/REST/cloud/#servicedeskapi/request-createCustomerRequest.

You should change your request body:

  • serviceDesk -> serviceDeskId
  • requestType -> requestTypeId

 

TAGS
AUG Leaders

Atlassian Community Events