Releases: jundis/CWSlack-SlashCommands
New cwslack-notes and cwslack-contacts functions!
With this release I have implemented two new PHP scripts into the repository.
cwslack-notes.php will allow you to post notes to tickets specifying either internal or external facing.
cwslack-contacts.php will allow you to search for contacts in ConnectWise and it will return clickable e-mail and phone numbers, allowing for easy grabbing of internal and external contact information.
This also includes a few bug fixes and typos in the code. Mainly creating an error should the API URL be incorrect for cwslack.php.
Follow links and multiple "Bad"
Hello again!
This release allows for links to follow commands using the ConnectWise link functions as well as makes the "bad" variables arrays separated by the pipe symbol | (shift+\ for those on QWERTY) so that you can specify multiple things you don't want alerting Slack. This release also changes the /t command to include hours spent on a ticket so you know if it's waaay past time spent.
See below for details on the new link function in cwslack-follow.php
- Open Setup Tables in ConnectWise.
- Open the "Links" table.
- Create a new Link referencing "Service"
- Set the Link Name to "Slack Follow"
- Set the Link Definition to https://yourdomain.tld/cwslack-follow.php?memberid=[memberid]&srnumber=[srnumber]&method=follow
- Create a new Link referencing "Service"
- Set the Link Name to "Slack Unfollow"
- Set the Link Definition to https://yourdomain.tld/cwslack-follow.php?memberid=[memberid]&srnumber=[srnumber]&method=unfollow
- Change the "method" on these links to whatever you set your $followtoken and $unfollowtoken to in config.php.
- Test the links!
Bug fixes galore!
Follow a ticket!
Hello again!
I've added a new cwslack-follow.php file which warrants its own release and notes. Since 1.2 this morning I've also added notes to /t and 2 new commands. See usage below
/t [ticket number] initial - Provides the initial note along with ticket details, message visible to you only.
/t [ticket number] full - provides the initial and latest note along with ticket details, message visible to you only.
/follow ticket number - Follow a ticket to get updates from the Slackbot channel just for you. Add unfollow at the end to remove your follow.
As usual, please let me know if you have any questions or comments!
Thanks.
Ticket text included in Incoming Messages
Hey all,
I've fixed some bugs, added new $bad* variables to block things, caught a few more error codes, and now messages by default (with $posttext set to 1) will also include the latest note on a ticket. For new tickets this will obviously be the first note.
Please let me know if you find any bugs or have comments/concerns. Ideally submit them to the issue tracker here on GitHub but feel free to message me on reddit as well or in the labtechgeek Slack chat if you're in there.
Thanks,
Joey
Incoming Webhook integration!
We've now added incoming webhook integration as cwslack-incoming.php. New instructions for setup are provided in README.
Stable 1.0 release
Software is currently stable with ability to request info and update status and priority.
Bugs:
- Command reply will appear "below the fold", currently waiting on Slack support for this and should be fixed in next version.