최근 검색


최근 검색 없음

Simple webhook JSON payload for webhook sent to Slack channel

답변함


2024년 1월 02일에 게시됨

Hi,

I'm not using any custom headers for my webhook preset for Slack, but just looking for a simple JSON template to use in the "JSON body" section to send an SLA warning breach to a Slack channel. I'd like to include:

  • Text mentioning that this ticket has breached SLA
  • The URL of the Zendesk ticket

Thank you.


0

4

댓글 4개

Would it be something like this?

{
  "text": "This ticket has breached SLA. Someone please take it! \\n {{ticket.title}} \\n {{ticket.link}}"
}

2


image avatar

Brandon Tidd

Zendesk LuminaryUser Group LeaderThe Humblident Award - 2021Community Moderator

Nicholas Deary's answer looks correct!

1


Ok, thank you. I'll give this a go!

0


image avatar

Heather Cook

Zendesk Luminary

You can also include ticket properties :-) E.g:

{
 "properties": {
 "IncidentNumber": "{{ticket.id}}",
 "Zendesk Group Name": "{{ticket.group.name}}",
 "Incident Title":"{{ticket.title| truncate:'100'}}",
 "Incident Description": "{{ticket.latest_comment.value | truncate:'20000'}}",
 "Requestor": "{{ticket.requester.name}} ({{ticket.requester.email}})"
 }

0


댓글을 남기려면 로그인하세요.

원하는 정보를 못 찾으셨나요?

새 게시물