{% 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 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 %}
{% if hasSlackToken %}

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 %}

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
Redirect URL
{{ baseUrl }}/admin/notification/slackAuth in 'OAuth & Permissions' tab.

2. Get clientId and clientSecret in 'Basic Information' tab.

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

4. Configure Slack on this notification setting screen

How to enable unfurling links feature

1. Subscribe events from Slack

Fill the form in Features > Event Subscriptions out as below:

Request URL
{{ appUrl }}/_api/slack/event
Workspace Events
link_shared
Domains
Your crowi domains
{% endblock content_main %} {% block content_footer %} {% endblock content_footer %}