{% extends '../layout/admin.html' %} {% block html_title %}{{ customTitle(t('Notification settings')) }}{% endblock %} {% block content_header %}
{% endblock %} {% block content_main %}
{% include './widget/menu.html' with {current: 'notification'} %}
{% set smessage = req.flash('successMessage') %} {% if smessage.length %}
{% for e in smessage %} {{ e }}
{% endfor %}
{% endif %} {% set emessage = req.flash('errorMessage') %} {% if emessage.length %}
{% for e in emessage %} {{ e }}
{% endfor %}
{% endif %}
Slack Incoming Webhooks Configuration

Check this option and GROWI use Incoming Webhooks even if Slack App settings are enabled.


How to configure Incoming Webhooks?

  1. (At Workspace) Add a hook
    1. Go to Incoming Webhooks Configuration page.
    2. Choose the default channel to post.
    3. Add.
  2. (At GROWI admin page) Set Webhook URL
    1. Input "Webhook URL" and submit on this page.
Slack App Configuration

NOT RECOMMENDED

This is the way that compatible with Crowi,
but not recommended in GROWI because it is too complex.

Please use Slack incomming webhooks Configuration instead.


How to configure Slack App?

  1. Register Slack App
    1. Create App from this link, and fill the form out as below:
      App Name
      growi
      Development Slack Workspace
      Select the workspace you want to notify to.
    2. Save it.
  2. Set Permission Scopes to the App
    1. Go to "OAuth & Permissions" page.
    2. Add "Send messages as GROWI"(chat:write:bot).
    3. Don't forget to save.
  3. Create a bot user
    1. Go to "Bot Users" page and add.
  4. Install the app
    1. Go to "Install App to Your Workspace" page and install.
    2. Go to "OAuth & Permissions" page and copy OAuth Access Token.
  5. (At this page) Set OAuth Access Token
    1. Input "OAuth Access Token".
    2. Don't forget to save.

Default Notification Settings for Patterns

{% for notif in settings %} {% endfor %}
Pattern Channel Operation

Path name of wiki. Pattern expression with * can be used.

Slack channel name. Without #.

{{ notif.pathPattern }} {{ notif.channel }}

not implemented now

{% endblock content_main %} {% block content_footer %} {% endblock content_footer %}