{% 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 hasSlackWebClientConfig %}
{% if hasSlackToken %}
{% endif %}
{# {% if not hasSlackWebClientConfig %} #}
Crowi and Slack is already connected. You can re-connect to refresh and overwirte the token with your Slack account.
Disconnect from Slack Reconnect to Slack {% else %}Slack clientId and clientSecret is configured. Now, you can connect with Slack.
Connect to Slack {% endif %}How to configure Slack App?
-
Register Slack App
-
Create App from this link, and fill the form out as below:
- App Name
crowi-plus- Development Slack Workspace
- Select the workspace you want to notify to.
- Save it.
-
Create App from this link, and fill the form out as below:
-
Get App Credentials
- Go To "Basic Information" page and make a note "Client ID" and "Client Secret".
-
Set Redirect URLs
- Go to "OAuth & Permissions" page.
- Add
/admin/notification/slackAuth. - Don't forget to save.
-
Set Permission Scopes to the App
- Go to "OAuth & Permissions" page.
- Add "Send messages as crowi-plus"(
chat:write:bot). - Don't forget to save.
-
Create a bot user
- Go to "Bot Users" page and add.
-
Install the app
- Go to "Install App to Your Workspace" page and install.
-
(At Workspace) Approve the app
- Go to the management Apps page for the workspace you installed the app and approve crowi-plus.
-
(At Workspace) Invite the bot to your workspace
- Invite the user you created in
4. Add a bot userto the channel you notify to.
- Invite the user you created in
- (At crowi-plus) Input "clientId" and "clientSecret" and submit on this page.
- (At crowi-plus) Click "Connect to Slack" button to start OAuth process.
How to configure Incoming Webhooks?
-
(At Workspace) Add a hook
- Go to Incoming Webhooks Configuration page.
- Choose the default channel to post.
- Add.
-
(At crowi-plus) Set Webhook URL
- Input "Webhook URL" and submit on this page.
Default Notification Settings for Patterns
| Pattern | Channel | Operation | {% for notif in settings %}
|---|---|---|
| {{ notif.pathPattern }} | {{ notif.channel }} |