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

NOT RECOMMENDED

This is the way that compatible to the official Crowi,
but not recommended in crowi-plus because it is too complex.

Please use (TBD) Slack incomming web hook Configuration instead.

{% if hasSlackConfig %}
{% if hasSlackToken %}

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

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

  1. Register Slack App
    1. Create App from this link, and fill the form out as below:
      App Name
      crowi-plus
      Development Slack Team
      Select the team you want to notify to.
    2. Save it.
  2. Get App Credentials
    1. Go To "Basic Information" page and make a note "Client ID" and "Client Secret".
  3. Set Redirect URLs
    1. Go to "OAuth & Permissions" page.
    2. Add /admin/notification/slackAuth .
    3. Don't forget to save.
  4. Set Permission Scopes to the App
    1. Go to "OAuth & Permissions" page and add "Send messages as crowi-plus"(chat:write:bot).
    2. Don't forget to save.
  5. Create a bot user
    1. Go to "Bot Users" page and add.
  6. Install the app
    1. Go to "Install App to Your Team" page and install.
  7. (At Team) Approve the app
    1. Go to the management Apps page for the team you installed the app and approve crowi-plus.
  8. (At Team) Invite the bot to your team
    1. Invite the user you created in 4. Add a bot user to the channel you notify to.
  9. (At crowi-plus) Input "clientId" and "clientSecret" and submit on this page.
  10. (At crowi-plus) Click "Connect to Slack" button to start OAuth process.
{# {% endif %} #}
{% endblock content_main %} {% block content_footer %} {% endblock content_footer %}