I need to pass custom fields through the create request api. How to do that?
POST /rest/servicedeskapi/request
$data = [
"serviceDeskId" => $serviceDeskId,
"requestTypeId" => $request->feedback_type,
"requestParticipants" => [
$customerId
],
"requestFieldValues" => [
"summary" => $request->summary,
"description" => $request->description,
],
];
Hi @satheesh , this document describes how you can pass custom field value in the rest API's. https://developer.atlassian.com/cloud/jira/service-desk/rest/intro/#fieldformats
Let me know if that helps.
You will need to know the custom field Id after which you can pass it in the requestFieldValues. e.g.
{
"requestParticipants": [
"5ee0a49c775ca80ac014b29f"
],
"serviceDeskId": "13",
"requestTypeId": "309",
"requestFieldValues": {
"summary": "Request JSD help via REST",
"description": "I need a new *mouse* for my Mac",
"customfield_10086": "Testing custom field"
}
}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks for the response. I tried it and it says "Unable to create request because of theses errors : The field 'customfield_10036' i"s not valid".
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@satheesh I am facing the same issue , Can you please point out the way to change the fields to visible . Where should I change it ? Thank you
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Bhanu Chava , the field needs to be visible in the Request Type in the Service Desk. If you want to use the api for Service Desk, then the actual portal must be set up, even if you have it hidden from portal, the actual request type must be configured with the fields
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
can anyone send example how to add field in jsm request?
Thanks
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.