Slack-Benachrichtigungen mit dem Plugin discourse-chat-integration einrichten

Thanks for the link.

As I understand, all notifications will be fired using one discourse user. For me that’s a bit rigid. Ideally I need different users for different channels. Our discourse will serve company wide purposes, andalso support projects, which are kind of private.

But, as a workaround / simple solution I can live with a setup, where there are implicit rules like: mute all categories, which are not public. That way if I create a new category for a new project, posts from that new category won’t appear in the company wide channel.

1 „Gefällt mir“

Yes, the issue was related to the SSL certificate. It has been solved. Thanks for the immediate help :slight_smile:
Another big thing is, I am embedding the discourse subdomain into our react product. Whenever a user clicks on slack notification of topic/post creation , our intended goal is to redirect user to our product’s domain, instead of discourse subdomain. I am not able to set this redirection. Kindly suggest any way.

I created the slack app as per the instructions. The issue I’m having is that other users want to add notifications to private channels I don’t have access to.
Is there a way to notify private slack channels that the creator of the slack app doesn’t have access too?
Or how can other users grant permissions to the app?

Also if I understand correctly, those slack app tokens that are entered into the Discourse’s plugin configuration allow access to my private channels, correct? This might be undesirable since any Discourse admin can see those tokens in the settings section. Would be good to warn about that, or remove from the instructions the groups:history and im:history grants.

Our makerforums discourse is intended to bring together a lot of related but separate communities. These communities are organized in our discourse by category or sub-category. Some of these communities have their own slack spaces.

At least one community, associated with a sub-category, would like slack integration, but as far as I can tell, there can be only one for the whole discourse.

Am I missing something?

Unfortunately you can only have one slack community connected at the moment. It would be nice to allow multiple connections per-provider in the future.

3 „Gefällt mir“

Thanks for confirming. It looks like it would be substantial work to move to installing arbitrarily many chat integrations, especially to do so without backward compatibility problems.

For anyone else with this problem: As an alternative we are exploring for one-way notification in slack that posts have been made in discourse, we realized that it makes sense to take advantage of Discourse’s RSS support and hook up the slack RSS app:

4 „Gefällt mir“

For the next person who sees this: I saw 422 No Record in the slack integration when trying to send a test message from the admin interface in my discourse.

The logs (https://mydiscourse/logs) showed the real error, which was in my case "{\"ok\":false,\"error\":\"channel_not_found\"}"}

The reason was that /discourse watch in a private channel of the Staff category showed up with a slack channel name like #private instead of the actual channel name, so I had to set the correct channel name in the discourse administrative interface to the actual channel name; then it worked.

2 „Gefällt mir“

Ist es möglich, permanente Feeds zwischen einigen Slack- und Discourse-Kanälen mit diesem Tool zu synchronisieren?

Hallo @david, gibt es eine Möglichkeit, eine einseitige Integration (Discourse zu Slack) mit dem discourse-chat-integration-Plugin zu konfigurieren?

Ich möchte einen Slack-Webhook einrichten, an den Nachrichten gesendet werden, ohne eine neue App in Slack zu konfigurieren.

Ich habe die Anweisungen unter Discourse to Slack (one-way) integration befolgt, aber keinen Erfolg gehabt. Nach der Aktivierung des Plugins und der Einrichtung der Webhook-URL habe ich kein Dashboard gefunden, um mit der Konfiguration fortzufahren.

Du musst das Plugin aktivieren, die Webhook-URL hinzufügen und den „Slack“-Anbieter aktivieren. Die Einstellung lautet „chat integration slack enabled“. Sobald du das getan hast, solltest du im Admin-Bereich unter Plugins → Chat-Integrationen den Slack-Tab sehen.

4 „Gefällt mir“

Danke @david, ich habe die Option gefunden und sie funktioniert :smile:

2 „Gefällt mir“

Hat jemand eine Lösung dafür gefunden?

Hallo,

ich habe dieses How-to befolgt, um unsere Discourse-Integration mit Slack einzurichten. Beim Testen der Regel erhalte ich diesen Fehler: DiscourseChat::ProviderError, jedoch ohne weitere Details. Selbst die Browserkonsole liefert kaum Informationen zum Fehler.

Habt ihr eine Idee, was die Ursache sein könnte?

Vielen Dank

Hast du die Admin-Protokolle überprüft?

1 „Gefällt mir“

Bitte probiert das einmal aus @Nick_Shearer_nsheare @Bas

Leider liefert Slack uns über die Slash-Command-API nicht den vom Benutzer angegebenen Kanalnamen, daher müssen wir die ID verwenden (weitere Details in der Commit-Nachricht). Wenn ihr Regeln ausschließlich über Slash-Commands verwaltet, macht dies keinen Unterschied.

3 „Gefällt mir“

Sehr schön! :slight_smile:

Ich aktualisiere diese Woche unsere Testumgebung und melde mich zurück!

2 „Gefällt mir“

Ich versuche schon viel zu lange, den Slack-Bot mit einem Kanal zum Laufen zu bringen. Gibt es einen Trick, den ich übersehe, damit Discourse in einem öffentlichen Kanal posten kann? Ich kann zwar direkt von Discourse benachrichtigt werden, aber Discourse scheint nicht in der Lage zu sein, in einem Kanal zu posten. Ich wollte das eingehende Webhook zur Integration hinzufügen, aber der Discourse-Tooltip weist darauf hin, dass dies nicht empfohlen wird. Jegliche Hilfe wäre sehr willkommen.

Ok – ich habe in einem anderen Forum einen Beitrag gefunden, der mir eine andere Stelle für die Logs gezeigt hat. Der Fehler war ziemlich eindeutig: Der Bot-Benutzer musste dem öffentlichen Kanal hinzugefügt werden, um dort posten zu können. Das habe ich nicht erwartet – aber das ist die Lösung!

5 „Gefällt mir“

Hallo zusammen,

gibt es eine Möglichkeit, in eingehenden Nachrichten in Slack benutzerdefinierten Text hinzuzufügen? Ich habe danach gesucht, aber nichts gefunden.

1 „Gefällt mir“

Ist es möglich, die Antworten im Thread auf dem Forum an den Thread unter der Nachricht in Slack zu senden?

1 „Gefällt mir“