Skip to content

Brightscout/mattermost-plugin-servicenow

 
 

Repository files navigation

Mattermost ServiceNow Plugin

Table of Contents

License

See the LICENSE file for license rights and limitations.

Overview

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.

Features

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.

    image

  • Ability to open the create/edit subscription modal through UI or slash commands.

    image

  • Ability to create a record or bulk subscription.

    image

  • 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.

    image

  • Supported events:

    • State changed

    • Priority changed

    • Assigned to changed

    • Assignment group changed

    • New comment added

    • New record created (only for bulk subscriptions)

      image

  • Notifications will be sent in the form of a post created by the ServiceNow bot in the channel specified while creating the subscription.

    image

  • Ability to see the existing subscriptions in the Right-Hand Sidebar or slash command.

    • In Right-hand sidebar

      image

    • Using slash command

      image

  • 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.

    image

  • Search and share a ServiceNow record in a specific channel.

    image

  • Ability to open search and share record modal through UI or slash command.

  • View comments on a ServiceNow record and add new comments.

    image

  • 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.

    image

  • 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.

Installation

  1. Go to the releases page of this GitHub repository and download the latest release for your Mattermost server.
  2. 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.
  3. Enable the plugin from System Console > Plugins > ServiceNow Plugin.

Setup

Connecting to ServiceNow

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.
  • 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" image
    • 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.

FAQ

What is Update Set that is present in the ServiceNow?

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.

What changes does our Update Set do?

  • 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.

Which ServiceNow tables are accessible through our plugin?

  • 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

About

ServiceNow plugin for Mattermost

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Go 63.1%
  • TypeScript 32.7%
  • Makefile 1.9%
  • SCSS 1.6%
  • Other 0.7%