See the LICENSE file for license rights and limitations.
This plugin integrates ServiceNow with Mattermost by allowing users to subscribe to record changes in ServiceNow and manage them through Mattermost. For a stable production release, please download the latest version from the Plugin Marketplace and follow the instructions to install and configure the plugin. If you are a developer who wants to work on this plugin, please switch to the Developer docs.
This plugin contains the following features:
-
Connecting/disconnecting to ServiceNow account using OAuth.
-
Creating/editing subscriptions to get notifications for ServiceNow record changes using wizards.
-
Ability to open the create/edit subscription modal through UI or slash commands.
-
Ability to create a record or bulk subscription.
-
A record subscription is for subscribing to changes in a specific record and a Bulk subscription allows subscribing to all records of a particular type.
-
Supported record types for subscriptions - incident, problem, change_request.
-
Supported events:
-
Notifications will be sent in the form of a post created by the ServiceNow bot in the channel specified while creating the subscription.
-
Ability to see the existing subscriptions in the Right-Hand Sidebar or slash command.
-
Ability to delete the subscriptions from the Right-Hand Sidebar or slash command.
-
Ability to filter subscriptions using the slash command to get a post containing filtered subscriptions.
-
Ability to filter subscriptions in the Right-Hand Sidebar using the filter icon.
-
Search and share a ServiceNow record in a specific channel.
-
Ability to open search and share record modal through UI or slash command.
-
View comments on a ServiceNow record and add new comments.
-
Supported record types for adding new comments - incident, problem, change_request, task, change_task and cert_follow_on_task.
-
Update the state of a ServiceNow record.
-
Ability to open the "Add and View comments" modal or "Update State" modal through buttons present in a notification post or a shared record post.
-
Supported record types for sharing a record - incident, problem, change_request, kb_knowledge, task, change_task and cert_follow_on_task.
-
Supported record types for updating a record state - incident, task, change_task and cert_follow_on_task.
- Go to the releases page of this GitHub repository and download the latest release for your Mattermost server.
- Upload this file on the Mattermost System Console > Plugins > Management page to install the plugin. To learn more about how to upload a plugin, see the documentation.
- Enable the plugin from System Console > Plugins > ServiceNow Plugin.
There are two methods by which you can connect your Mattermost account to your ServiceNow account.
-
Using slash command
- Run the slash command
/servicenow connect
in any channel. - You will get an ephemeral message from the ServiceNow bot containing a link to connect your account.
- Click on that link. If it asks for login, enter your ServiceNow credentials and click
Allow
to authorize and connect your account.
- Run the slash command
-
Using the button in the right-hand sidebar
- Open the right-hand sidebar by clicking on the ServiceNow icon present in the channel header section of all channels.
- You will see a button saying "Connect your account"
- Click on that button. If it asks for login, enter your ServiceNow credentials and click
Allow
to authorize and connect your account.
After connecting successfully, you will get a direct message from the ServiceNow bot containing a Welcome message and some useful information along with some instructions for the system admins. Note: You will only get a direct message from the bot if your Mattermost server is configured to allow direct messages between any users on the server. If your server is configured to allow direct messages only between two users of the same team, then you will not get any direct message.
An update set tracks and stores the changes of a ServiceNow instance and is used for moving those changes from one instance to another by first exporting this update set and importing the same update set to another ServiceNow instance. These changes can include things like some custom APIs (scripted REST APIs), changes in the tables, etc.
-
GetStates scripted REST API: Returns different states available for the records. Records supported: incident, task, change_task, and cert_follow_on_task
-
An application with the name ServiceNow for Mattermost Notifications
-
ServiceNow for Mattermost Notifications application handles the storing of subscription details and sending notifications on the subscribed events.
-
ServiceNow for Mattermost Notifications Auth table to store different Mattermost server URLs with their webhook secrets.
-
ServiceNow for Mattermost Subscriptions table to store the subscription details.
-
Business rules to handle different events (example: new record created, comment added on record, record state updated, etc.)
-
Script actions to send notifications based on the subscription events.
-
Events registration to register different record-type events.
-
-
- incident
- problem
- change_request
- kb_knowledge
- task
- change_task
- cert_follow_on_task
- x_830655_mm_std_servicenow_for_mattermost_notifications_auth
- x_830655_mm_std_servicenow_for_mattermost_subscriptions
- All the tables extending these tables
Made with ♥ by Brightscout