Slack2OTRS Integration

Moderator: crythias

Post Reply
mamebina123
Znuny newbie
Posts: 17
Joined: 11 Apr 2017, 12:39
Znuny Version: 5.0.18

Slack2OTRS Integration

Post by mamebina123 »

Hello,

i want to try to integrate Slack to OTRS with this ruby script.
https://github.com/l3akage/otrs2slack

What i want is, when i create a ticket an check the "send to slack" dynamic field, to create the ticket in Slack.
I created the dynamic field and configured an event in the GenericAgent are to do this.
I added the Webhook URL from Slack and the other parameters into the ruby script.

1.) I don´t know how to start the script via cmd. What i have to type in in the cmd field?
2.) The ruby script is configured for MySQL. I am using PostgreSQL. I know that i have to edit line 4 and line 11 of the ruby file.
3.) Do i have to install ruby on my operating system. If so, which version should i use?

Maybe somebody tried it out and have some answers for me or maybe there is an other possible solution to solve this.

best regards
mamebina123
root
Administrator
Posts: 3934
Joined: 18 Dec 2007, 12:23
Znuny Version: Znuny and Znuny LTS
Real Name: Roy Kaldung
Company: Znuny
Contact:

Re: Slack2OTRS Integration

Post by root »

Hi
mamebina123 wrote: 1.) I don´t know how to start the script via cmd. What i have to type in in the cmd field?
The path of your script, use an absolute path and it should be executable by the otrs and web server user. Nobody know who triggers the GenericAgent.
mamebina123 wrote: 2.) The ruby script is configured for MySQL. I am using PostgreSQL. I know that i have to edit line 4 and line 11 of the ruby file.
Don't access the databse directly. Use the API or the GenericInterface. Your script is called ith two parameters, the TicketID and TicketNumber. Use them to get the tickets details. How to access can be found e.g. in https://github.com/swobspace/ottick
mamebina123 wrote: 3.) Do i have to install ruby on my operating system. If so, which version should i use?
for a ruby script you need ruby, sure. Which one depends on your code and the used gems.
Znuny and Znuny LTS running on CentOS / RHEL / Debian / SLES / MySQL / PostgreSQL / Oracle / OpenLDAP / Active Directory / SSO

Use a test system - always.

Do you need professional services? Check out https://www.znuny.com/

Do you want to contribute or want to know where it goes ?
Post Reply