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

Jonathan Dahl
参加日2022年1月26日
·
前回のアクティビティ2025年1月23日
Lead Systems Engineer, MongoDB
フォロー中
0
フォロワー
0
合計アクティビティ
256
投票
83
受信登録
170
アクティビティの概要
バッジ
記事
投稿
コミュニティへのコメント
記事へのコメント
アクティビティの概要
さんの最近のアクティビティ Jonathan Dahl
Jonathan Dahlさんがコメントを作成しました:
コメントHow to create and update reports
Hi Evans,
We encountered a similar requirement and opted to create a ZIS integration that copies the initial ticket description into a hidden multi-line custom field. Here’s how the bundle is set up. If you have any questions, don’t hesitate to DM me!
{
"name": "ZIS integration - Ticket descriptions",
"description": "Add the ticket description to a custom field for reporting",
"zis_template_version": "2019-10-14",
"resources":
{
"GetDescAction":
{
"type": "ZIS::Action::Http",
"properties":
{
"name": "GetDescAction",
"definition":
{
"method": "GET",
"path.$": "/api/v2/tickets/{{$.ticketId}}.json",
"connectionName": "zendesk",
"headers":
[
{
"key": "Content-Type",
"value": "application/json"
}
]
}
}
},
"AddDescAction":
{
"type": "ZIS::Action::Http",
"properties":
{
"name": "AddDescAction",
"definition":
{
"method": "PUT",
"path.$": "/api/v2/tickets/{{$.ticketId}}",
"connectionName": "zendesk",
"headers":
[
{
"key": "Content-Type",
"value": "application/json"
}
],
"requestBody":
{
"ticket":
{
"custom_fields":
[
{
"id": 34216058451731, // Add your custom field ID here
"value.$": "$.ticketDescription"
}
]
}
}
}
}
},
"AddDescFlow":
{
"type": "ZIS::Flow",
"properties":
{
"name": "AddDescFlow",
"definition":
{
"StartAt": "GetDetails",
"States":
{
"GetDetails":
{
"Type": "Action",
"ActionName": "zis:{{your-ZIS-integration-name}}:action:GetDescAction",
"Parameters":
{
"ticketId.$": "$.input.ticket_event.ticket.id"
},
"ResultPath": "$.input.ticket_details",
"Next": "FetchTicketDescription"
},
"FetchTicketDescription":
{
"Type": "Action",
"ActionName": "zis:common:transform:Jq",
"Parameters":
{
"expr": ".ticket.description",
"data.$": "$.input.ticket_details"
},
"ResultPath": "$.input.ticket_details",
"Next": "ZendeskTicketUpdate"
},
"ZendeskTicketUpdate":
{
"Type": "Action",
"ActionName": "zis:{{your-ZIS-integration-name}}:action:AddDescAction",
"Parameters":
{
"ticketId.$": "$.input.ticket_event.ticket.id",
"ticketDescription.$": "$.input.ticket_details"
},
"End": true
}
}
}
}
},
"AddDescJobSpec":
{
"type": "ZIS::JobSpec",
"properties":
{
"name": "AddDescJobSpec",
"event_source": "support",
"event_type": "ticket.TicketCreated",
"flow_name": "zis:{{your-ZIS-integration-name}}:flow:AddDescFlow"
}
}
}
}
コメントを表示 · 投稿日時:2024年11月05日 · Jonathan Dahl
0
フォロワー
0
投票
0
コメント