Post new OTRS tickets to Slack (written in python).
Debian OS:
sudo apt install python3-pymysql python3-requests
Clone the repo to a folder on your OTRS host, e.g.:
cd /opt
git clone https://github.com/magenbrot/otrs2slack.git
Goto Admin -> Generic Agent -> Add Job
Settings:
-
Job name: OTRS to Slack
-
Event Based Execution:
- Event Trigger:
- Type: Ticket
- Event: TicketCreate
-
Select Tickets:
- ie. Queue "Support" only
-
Execute Ticket Commands:
- CMD:
. /opt/otrs2slack/.secrets && /opt/otrs2slack/otrs2slack.py
- CMD:
Visit this link on slack.com. Log in with the account you want to have OTRS tickets posted to.
Give the app a name and select the workspace. Navigate to incoming webhooks and switch them on.
"Add New Webhook to Workspace" and select the channel where you want the messages to show up. Remember the webhook URL for the next step.
Copy .secrets.dist to .secrets file, open it in an editor and setup the URLs and MySQL connection.