I'm working with JIRA service desk on a cloud instance, and I'm unable to create customer requests using the REST API. Creating via the interface works without issue.
The body of my POST looks like this:
{ "raiseOnBehalfOf": "myuser", "requestFieldValues": { "summary": "test", "description": "test" }, "requestTypeId": "1", "serviceDeskId": "SDID" }
I've also tried with the "requestParticipants" field. No matter what I try, I always get the same result:
HTTP 400 { "errorMessage": "This request is invalid. Check that the request contains all the required parameters and that the parameters are valid.", "i18nErrorMessage": { "i18nKey": "sd.rest.error.bad.request", "parameters": [] } }
What could I be doing wrong? I've tried every combination of parameters that I can think of.
This is the create issue api call: Snippet
rest/servicedeskapi/request
Hello Ben, the error 400 indicates that:
Returned if the HTTP request call is invalid.
You can see this on the documentation for Service Desk APIs: https://developer.atlassian.com/cloud/jira/service-desk/rest/#api-request-post.
What is the call that you're trying? Make sure to follow:
POST
servicedesk/{serviceDeskId}/requesttype/{requestTypeId}/field
Also make sure that your user is a customer on the project.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.