Example configuration for a web service to notify agents about new tickets by using the generic ticket invoker and the Web Service Transport for ticket notifications.


Before you start, you need a webhook. See the Mattermost manual 1 how to create one. Keep the Webhook URL.

Enable the setting PreferencesGroups###MattermostUsername in the system configuration and agent’s are able to maintain their Mattermost username in the user preferences:

View of the Notication Settings in the Personal Preferences

Import and Configuration

Open the Web Service Management in the from the Admin Overview and click on Add Web Service.

Import the predefined web service

Select Mattermost notification and click on the button below to import the predefined web service.

Now the webhook URL needs to be added to the web service. Click on the name of the web service and configure the network transport of the Requester section:

Enter the network transport configuration

Replace YOURHOST in the Endpoint setting with the hostname of the webhook and YOURHOOK of the controller endpoint with the corresponding part of the webhook:

Network transport setting to adjust the URL

Both settings together must match your webhook. If the webhook looks like this: then YOURHOST is and YOURHOOK qjx7yo62hskgzdp17stjn5m5r5o.

Ticket notification

By adding the new created web service to an existing notification we finalize this example. Open the existing ticket notification Ticket create notification and scroll down block Web Service of the section Notification Methods. Select your web service and the invoker, check asynchronous and save your changes:

Select the previous created web service


The used XSLT for the outbound mapping contains some interesting parts:

<?xml version="1.0" encoding="UTF-8"?>
<xsl:transform version="1.0" xmlns:xsl="" xmlns:date="" extension-element-prefixes="date">
    <xsl:output method="xml" encoding="utf-8" indent="yes"/>
    <xsl:template match="RootElement">
            <channel>@<xsl:value-of select="//Recipient/MattermostUsername" /></channel>
            <text>A new ticket has been created in queue&#x20;**<xsl:value-of select="//Ticket/Queue" />**&#x20;with the title&#x20;**<xsl:value-of select="//Ticket/Title" />**.</text>
  • In line 6 we use a new feature, system configuration values. Scalar values can be accessed via <OTRS_CONFIG_ConfigurationName>. It’s XML so the < and > needs to be encoded.

  • The agent’s Mattermost username is taken from the incoming date in line 8. Check the web service debugger and discover which values are available. The node Recipient contains nearly everything about the agent oder customer.

Links to external documentation