You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
Next: Root
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
The Atlassian Community can help you and your team get more value out of Atlassian products and practices.
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.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.