Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Omnidesk: Кастомные запросы для вебхука в адрес Slack
// правило для входящих обращений
payload={"attachments":[
{
"fallback":"<[case_url]|[case_subject]> (#[case_number])",
"pretext":"<[case_url]|[case_subject]> (#[case_number])",
"color":"#4CA9E4",
"fields":[
{
"title":"Отправитель",
"value":"[user_full_name] ([user_email])",
"short":true
},
{
"title":"Группа",
"value":"[case_group]",
"short":true
},
{
"title":"Содержание",
"value":"[case_description]",
"short":false
}
]
}
]
}
// правило для изменённых или текущих обращений
payload={"attachments":[
{
"fallback":"<[case_url]|[case_subject]> (#[case_number])",
"pretext":"<[case_url]|[case_subject]> (#[case_number])",
"color":"#4CA9E4",
"fields":[
{
"title":"Отправитель",
"value":"[user_full_name] ([user_email])",
"short":true
},
{
"title":"Группа",
"value":"[case_group]",
"short":true
},
{
"title":"Новый ответ",
"value":"[last_message]",
"short":false
}
]
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment