Skip to content

Releases: jundis/CWSlack-SlashCommands

New cwslack-notes and cwslack-contacts functions!

16 Sep 14:03
Compare
Choose a tag to compare

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"

12 Sep 21:54
Compare
Choose a tag to compare

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

  1. Open Setup Tables in ConnectWise.
  2. Open the "Links" table.
  3. Create a new Link referencing "Service"
  4. Set the Link Name to "Slack Follow"
  5. Set the Link Definition to https://yourdomain.tld/cwslack-follow.php?memberid=[memberid]&srnumber=[srnumber]&method=follow
  6. Create a new Link referencing "Service"
  7. Set the Link Name to "Slack Unfollow"
  8. Set the Link Definition to https://yourdomain.tld/cwslack-follow.php?memberid=[memberid]&srnumber=[srnumber]&method=unfollow
  9. Change the "method" on these links to whatever you set your $followtoken and $unfollowtoken to in config.php.
  10. Test the links!

Bug fixes galore!

02 Sep 15:36
Compare
Choose a tag to compare

This is just a maintenance release to fix some issues with the /follow and /t commands.

  • Fixed issue #18
  • Fixed issue #17
  • Added software license per issue #16
  • Merged PR #19 to fix bug in file open

Follow a ticket!

26 Aug 18:00
Compare
Choose a tag to compare

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

26 Aug 05:17
Compare
Choose a tag to compare

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!

05 Aug 13:57
Compare
Choose a tag to compare

We've now added incoming webhook integration as cwslack-incoming.php. New instructions for setup are provided in README.

Stable 1.0 release

01 Aug 20:13
Compare
Choose a tag to compare

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.