Giter Site home page Giter Site logo

osticket-slack's Introduction

Slack

osTicket-slack

An plugin for osTicket which posts notifications to a Slack channel.

Originally forked from: https://github.com/thammanna/osticket-slack.

Info

This plugin uses CURL and was designed/tested with osTicket-1.10.1

Requirements

  • php_curl
  • A slack account

Install


  1. Clone this repo or download the zip file and place the contents into your include/plugins folder.
  2. Now the plugin needs to be enabled & configured, so login to osTicket, select "Admin Panel" then "Manage -> Plugins" you should be seeing the list of currently installed plugins.
  3. Click on Slack Notifier and paste your Slack Endpoint URL into the box (Slack setup instructions below).
  4. Click Save Changes! (If you get an error about curl, you will need to install the Curl module for PHP).
  5. After that, go back to the list of plugins and tick the checkbox next to "Slack Notifier" and select the "Enable" button.

Slack Setup:

  • Navigate to https://api.slack.com/ select "Start Building"
  • Name your App osTicket Notification, select your Workspace from the drop-down
  • Select "Incoming Webhooks"
  • Activate the Webhooks with the link (it defaults to Off, just click Off to change it to On)
  • Scroll to the bottom and select "Add a new Webhook to Workspace"
  • Select the endpoint of the webhook, (ie, channel to post to)
  • Select "Authorize"
  • Scroll down and copy the Webhook URL entirely, paste this into the osTicket -> Admin -> Plugin -> Slack config admin screen.

If you want to add the Department as a field in each slack notice, tick the Checkbox in the Plugin config.

The channel you select will receive an event notice, like:

Aaron [10:56 AM] added an integration to this channel: osTicket Notification

You should also receive an email from Slack telling you about the new Integration.

Discord Setup:

Note: This works very well, but may not be as smooth as Slack is natively.

  • Open Discord
  • Right-click on the channel you wish to send the notifications too
  • Select "Webhooks"
  • Create a Webhook by clicking 'Create Webhook'
  • Scroll down to the bottom and copy the Webhook URL in it's entireity
  • Go to the osTicket -> Admin -> Plugin -> Slack config admin screen and paste the URL, at the end add /slack
  • Example: https://discordapp.com/api/webhooks/{webhook.id}/{webhook.token}/slack

Test!

Create a ticket!

You should see something like the following appear in your Slack channel:

slack-new-ticket

When a user replies, you'll get something like:

slack-reply

Notes, Replies from Agents and System messages shouldn't appear, usernames are links to the user's page in osTicket, the Ticket subject is a link to the ticket, as is the ticket ID.

Adding pull's from original repo:

+0.2 - 17 december 2016 +[feature] "Ignore when subject equals regex" by @ramonfincken

osticket-slack's People

Contributors

clonemeagain avatar wildernesstechie avatar jenseb avatar magisksec avatar axadiw avatar perryk avatar thammanna avatar dc9-dev avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.