Last active
August 25, 2020 11:23
-
-
Save cissav/69b638f40c1ad1989da8f0b0f3cc38e0 to your computer and use it in GitHub Desktop.
Omnidesk: Кастомные запросы для вебхука в адрес Slack
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// правило для входящих обращений | |
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