{% extends '../layout/admin.html' %} {% block html_title %}通知設定 · {{ path }}{% endblock %} {% block content_head %}
{% 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 App Configuration
{% if hasSlackConfig %}
{% if hasSlackToken %}

Crowi and Slack is already connected. You can re-connect to refresh and overwirte the token with your Slack account.

Reconnect to Slack {% else %}

Slack clientId and clientSecret is configured. Now, you can connect with Slack.

Connect to Slack {% endif %}

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 }}
{% endif %} {% if not hasSlackConfig %}

How to configure Slack app for Crowi

Register Crowi as a Slack application, the notification feature for Slack can be enabled.

1. Register Slack App

Create App from this link, and fill the form out as below:

App Name
Crowi
Icon
Upload this image as the icon (Free to download and use it) => Crowi Logo
Short description
Crowi's Slack Notification Integration
Long description
Crowi's Slack Notification Integration

and Save it.

2. Get clientId and clientSecret

3. After clientId and clientSecret set, click "Connect to Slack" button to start OAuth process.

4. Configure Slack on this notification setting screen

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