Recent searches
No recent searches
Required to solve a ticket payload in api
Posted Jul 30, 2021
Hi,
I am using ticket fields api to retrieve the fields information:
https://xxxxxxxxx.zendesk.com/api/v2/ticket_fields.json
I mange to get the payload, but with this payload, how could I know the field is "Required to solve a ticket" ?
{
"url": "https://xxxxxxxxx.zendesk.com/api/v2/ticket_fields/900012435943.json",
"id": 900012435943,
"type": "text",
"title": "Solve Remark",
"raw_title": "Solve Remark",
"description": "",
"raw_description": "",
"position": 9999,
"active": true,
"required": true,
"collapsed_for_agents": false,
"regexp_for_validation": null,
"title_in_portal": "Solve Remark",
"raw_title_in_portal": "Solve Remark",
"visible_in_portal": false,
"editable_in_portal": false,
"required_in_portal": false,
"tag": null,
"created_at": "2021-07-30T06:05:42Z",
"updated_at": "2021-07-30T06:05:42Z",
"removable": true,
"agent_description": null
}
1
5 comments
Russell Chee
Hey there,
Thanks for reaching out on the community post, I hope you are doing well. I understand that you are looking to find out for when a particular ticket field has the "required to solve a ticket". In this instance with the payload you provided, for that particular ticket field, it looks like it has that requirement as you can see under the value of "required", it states it as "true." If you would like to know more information around this please see our documentation on the Ticket Fields API here. Let us know if you need anything else!
0
Nintex KJ
Hi Russell,
Thank you for the information.
I have another question, would it possible I can define a custom field which is required to create a new ticket?
Since the required inside the json payload mean required for solve ticket. What if there is field is required for create a new ticket?
0
Russell Chee
Hey there,
Thanks for reaching back with your follow up question. So at this current time it's not possible in the native UI to have it so that selecting a certain ticket field would create a new ticket within Zendesk. You may be able to leverage the Create Tickets API Endpoint and build a script outside of Zendesk to achieve this when a certain Ticket Field has been set.
0
Nintex KJ
Thanks for update.
Let me rephrase my questions, is it possible inside the native UI that:
1. Create a custom field that are mandatory for Create a ticket?
2. Create a custom field that are mandatory for Update a ticket?
0
Russell Chee
Hey there,
Thanks for your response and rephrasing of the question, I understand it a lot better now. At this current time there is not a custom field that you could set as mandatory for creating a ticket or updating a ticket. The only available feature right now is to have a "required to solve a ticket". I hope this helps :)
0