Last active
August 29, 2015 13:59
-
-
Save dasevilla/10686908 to your computer and use it in GitHub Desktop.
Send case notifications from Desk to 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
{ | |
"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}}>" | |
} |
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
{ | |
"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