Skip to content

Instantly share code, notes, and snippets.

@dasevilla
Last active August 29, 2015 13:59
Show Gist options
  • Save dasevilla/10686908 to your computer and use it in GitHub Desktop.
Save dasevilla/10686908 to your computer and use it in GitHub Desktop.
Send case notifications from Desk to Slack
{
"icon_url": "http://www.desk.com/resources/branding/desk-com-logo-mobile.png",
"attachments": [
{
"fields": [
{
"short": false,
"value": "{{case.customer.name}} {{case.customer.email}}",
"title": "From"
},
{
"short": false,
"value": "{{case.subject}}",
"title": "Subject"
},
{
"short": true,
"value": "{{case.channel}}",
"title": "Source"
}
],
"fallback": "{{case.subject}}"
}
],
"text": "New case <{{case.direct_url|#{{case.id}}>"
}
{
"icon_url": "http://www.desk.com/resources/branding/desk-com-logo-mobile.png",
"attachments": [
{
"fields": [
{
"short": false,
"value": "{{case.customer.name}} <http://twitter.com/{{case.customer.twitter.login}}|@{{case.customer.twitter.login}}>",
"title": "From"
},
{
"short": false,
"value": "{{case.subject}}",
"title": "Tweet"
},
{
"short": true,
"value": "{{case.channel}}",
"title": "Source"
}
],
"fallback": "{{case.subject}}"
}
],
"text": "New case <{{case.direct_url|#{{case.id}}>"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment