{% 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 %}
{% endfor %}
{% for e in emessage %}
{{ e }}
{% endfor %}
{% endif %}
{% endfor %}
{% if hasSlackToken %}
{% 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
Pattern | Channel | Operation | {% for notif in settings %}
---|---|---|
{{ notif.pathPattern }} | {{ notif.channel }} |
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