최근 검색
최근 검색 없음

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
댓글