Display custom fields from a query of multiple tickets

Respondidas


Publicado 16 ago 2021

Hello! I've done a lot of python work with the Zendesk REST API, but am new to the javascript side of things in ZAF. 

Here is what I want to do; Make a sidebar app that:

1. Retrieves Custom field value from ticket.
2. Queries for all tickets with that same value
3. Loop through those tickets extracting some other custom field values and displaying them in the app in table form.

1. I have built the app and retrieved the custom value

2. looking for code snippets or resources for how to do a query and put it into an array of ticket ids.

3. looking for code snippets or resources on how to loop through that array, doing individual queries of those tickets for custom field values and putting those into this idea from the code samples:

function showInfo() {
var requester_data = {
'name': 'Jane Doe',
'tags': ['tag1', 'tag2'],
'created_at': 'November 20, 2014',
'last_login_at': 'June 27, 2016'
};

End result I'm looking for is an App in right sidebar that looks like this:

CUSTOM FIELD RELATED TICKETS
Ticket#.    Custom Field.    Custom Field.     Custom Field    
Ticket#.    Custom Field.    Custom Field.     Custom Field
Ticket#.    Custom Field.    Custom Field.     Custom Field

 

Thanks for any help or pointers!


0

4

0 comentarios

Iniciar sesión para dejar un comentario.

¿No encontró lo que buscaba?

Nueva publicación