Recherches récentes


Pas de recherche récente

bmin bmin's Avatar

bmin bmin

Adhésion le 15 avr. 2021

·

Dernière activité le 22 oct. 2021

Suivis

0

Abonnés

0

Activité totale

9

Votes

0

Abonnements

2

APERÇU DES ACTIVITÉS

Dernière activité effectuée par bmin bmin

bmin bmin a ajouté un commentaire,

Commentaire de la communauté Feedback - Help Center (Guide)

@SPORT

Did you check script with alert function? (alert will show alert message if function success)

I just update filter function for custom field in request list page.

Hope this help

Afficher le commentaire · Publication le 07 mai 2018 · bmin bmin

0

Abonnés

0

Votes

0

Commentaire


bmin bmin a ajouté un commentaire,

Commentaire de la communauté Feedback - Help Center (Guide)

@sport

First you should check json data from api url.

https://yourdomain.zendesk.com/api/v2/tickets.json

If you can see json data with ticket and custom data fields, you can use my code to pull them.

In my case, my json data like:{“ticket”:[{“url”:” https://...” ,“id”:”xx”,,"fields":[{"id":114...,"value":null},{}] },{}]}

 

Afficher le commentaire · Publication le 07 mai 2018 · bmin bmin

0

Abonnés

0

Votes

0

Commentaire


bmin bmin a ajouté un commentaire,

Commentaire de la communauté Feedback - Help Center (Guide)

 

@Cory

I did it.

Requests_page Template

Add filter dropdown with name, id, class:

{{#form 'requests_filter' class='requests-table-toolbar'}}
 


          
     

Afficher le commentaire · Publication le 27 avr. 2018 · bmin bmin

0

Abonnés

0

Votes

0

Commentaire


bmin bmin a ajouté un commentaire,

Commentaire de la communauté Feedback - Help Center (Guide)

hi Jake.

it seems correct.

You can put alert function into script to understand where it not work.

success: function (data) {

alert("api success");

var value="none";

var count = Object.keys(data.request.fields).length;

alert(count);

var i;

for (i = 0;

if (data.request.fields[i].id=="114098173934") {

value = data.request.fields[i].value;

alert(value)

break;

 I guess the api function has problem. You should check json data for api url(api/v2/tickets.json). If you receive a bid json data like:

{“ticket”:[{“url”:” https://...” ,“id”:”xx”,,"fields":[{"id":114...,"value":null},{}] },{}]}

that you can use data.request.fields.

Hope this help.

Afficher le commentaire · Publication le 27 avr. 2018 · bmin bmin

0

Abonnés

0

Votes

0

Commentaire


bmin bmin a ajouté un commentaire,

Commentaire de la communauté Feedback - Help Center (Guide)

@Cory 

You are welcome!

Do anyone need to make filter with custom field?

I will try if needed.

Afficher le commentaire · Publication le 25 avr. 2018 · bmin bmin

0

Abonnés

0

Votes

0

Commentaire


bmin bmin a ajouté un commentaire,

Commentaire de la communauté Feedback - Help Center (Guide)

@Jake

Did you add my code correctly. Maybe you forget

If it not work, Please show me your code.

Afficher le commentaire · Publication le 24 avr. 2018 · bmin bmin

0

Abonnés

0

Votes

0

Commentaire


bmin bmin a ajouté un commentaire,

Commentaire de la communauté Feedback - Help Center (Guide)

I used ajax to add custom field column in request list table. 

 First, you add column header of custom field in the requests_page template.

And then, in the body, you can add some code lines as this:

You need to change custom_field_key to your custom field id you want to add.

Afficher le commentaire · Publication le 24 avr. 2018 · bmin bmin

0

Abonnés

2

Votes

0

Commentaire