Zendesk API custom work - custom field drop down on support centre 'my requests' page
$10-30 AUD
クローズ
投稿日: 6年近く前
$10-30 AUD
完了時にお支払い
Hi
In our Zendesk support centre, the my requests/my activities page, I need a drop down menu in the form search section that links to custom field I made for 'category'. It's in the Zendesk template file called: [login to view URL] (orange box in screenshot)
I managed to add the custom field 'category' to the requests part of the page using a custom api connection (green box in the screenshot) though how do I call on and add the values of the category drop down on the form? The script is below for reference.
You will need access to your own Zendesk account or Zendesk trial to test this, and then send me the [login to view URL] page when complete. Payment after it has been sent and I have tested it working.
<script>
[login to view URL]("/api/v2/tickets/" + "{{id}}" + ".json").
done(function(data) {
if (data.ticket.assignee_id) {
[login to view URL]("/api/v2/users/" + data.ticket.assignee_id + '.json').done(function(user) {
[login to view URL](user);
[login to view URL]([login to view URL]);
[login to view URL](data.ticket.assignee_id);
[login to view URL]([login to view URL]);
[login to view URL](data.custom_fields);
[login to view URL](data.ticket.custom_fields[1].value);
$("." + {{id}}).text([login to view URL]);
if(data.ticket.custom_fields[1].value){
$(".c" + {{id}}).text(data.ticket.custom_fields[1].value);
}
else
{
jQuery('#' + "{{id}}").text("None");
}
});
}
else {
jQuery('#' + "{{id}}").text("None");
}
});
</script>
Thank you