Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bestpractical/rt-extension-notifyslack
https://github.com/bestpractical/rt-extension-notifyslack
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/bestpractical/rt-extension-notifyslack
- Owner: bestpractical
- Created: 2018-07-17T17:49:38.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2022-07-27T19:26:52.000Z (over 2 years ago)
- Last Synced: 2023-04-13T18:31:29.340Z (over 1 year ago)
- Language: Perl
- Homepage: http://metacpan.org/release/rt-extension-notifyslack
- Size: 49.8 KB
- Stars: 6
- Watchers: 10
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README
- Changelog: Changes
Awesome Lists containing this project
README
NAME
RT-Extension-NotifySlack - RT ScripAction Slack integrationDESCRIPTION
This extension allows for Slack updates to be sent out in the same
manner that emails are dispatched. Meaning that a on any condition a
Slack action can be called and a Slack specififc template can be used to
update a Slack channel.RT VERSION
Works with RT 4.4INSTALLATION
perl Makefile.PL
make
make install
May need root permissionsmake initdb
See the CONFIGURATION section below before running this command.Only run this the first time you install this module.
If you run this twice, you may end up with duplicate data in your
database.Edit your /opt/rt4/etc/RT_SiteConfig.pm
Add this line:Plugin('RT::Extension::NotifySlack');
Clear your mason cache
rm -rf /opt/rt4/var/mason_data/objRestart your webserver
CONFIGURATION
You must add the desired Slack channels and webhook URLs to the RT
%SlackWebHookUrls config value in RT_SiteConfig.pm. These values can be
retrieved from the Slack API's Incoming Webhooks configuration settings.
See example below:Set( %SlackWebHookUrls,
'#channel' => 'https://myslackwebhookurl...',
);The 'Notify Slack' ScripAction posts to one Slack channel. The default
Slack channel is currently set to #general. You can update this in the
initialdata file by changing the 'Notify Slack' ScripAction Argument to
the desired Slack channel ( be sure to include the '#' when indicating
the channel name and no '#' for direct messaging ). To post to
additional Slack channels, copy the ScripAction giving it a new Name and
Argument, something like "Slack Updates To #Support".AUTHOR
Best Practical Solutions, LLCAll bugs should be reported via email to
[email protected]
or via the web at
http://rt.cpan.org/Public/Dist/Display.html?Name=RT-Extension-NotifySlack
LICENSE AND COPYRIGHT
This software is Copyright (c) 2018 by Best Practical Solutions, LLCThis is free software, licensed under:
The GNU General Public License, Version 2, June 1991