最近の検索
最近の検索はありません

bmin bmin
参加日2021年4月15日
·
前回のアクティビティ2021年10月22日
フォロー中
0
フォロワー
0
合計アクティビティ
9
投票
0
受信登録
2
アクティビティの概要
バッジ
記事
投稿
コミュニティへのコメント
記事へのコメント
アクティビティの概要
さんの最近のアクティビティ bmin bmin
bmin bminさんがコメントを作成しました:
bmin bminさんがコメントを作成しました:
@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},{}] },{}]}
コメントを表示 · 投稿日時:2018年5月07日 · bmin bmin
0
フォロワー
0
投票
0
コメント
bmin bminさんがコメントを作成しました:
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.
コメントを表示 · 投稿日時:2018年4月27日 · bmin bmin
0
フォロワー
0
投票
0
コメント
bmin bminさんがコメントを作成しました:
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.
コメントを表示 · 投稿日時:2018年4月24日 · bmin bmin
0
フォロワー
2
投票
0
コメント