Issues with pulling in Sub Category Posts w/ Slack Plug-In?

AI-generated summary

Issues with Pulling in Sub Category Posts with Slack Plug-In

Curtis_Kephart and dovholuknf are experiencing issues with pulling in sub-category posts using the Slack plug-in. The problem arises when trying to add sub-categories, as they are not listed among the available categories to follow or watch.

Curtis_Kephart has tried using the follow command in Slack with the sub-category name and the category:subcategory-name format, but receives an error message stating that the sub-category cannot be found.

However, dovholuknf discovered a solution by using the “Category Slug” instead of the sub-category name. By using the /discourse watch command with the slug, they were able to successfully create a rule to watch posts in the sub-category.

The issue seems to be related to the naming convention used in the Slack plug-in, and using the Category Slug may be a workaround for others experiencing this problem.

Following up on the thread: Pulling in Sub Category Posts w/ Slack Plug-In?


I am unable to pull in sub-category posts with the slack plugin. The thread above suggests that we need to specify all sub-categories specifically in the chat-integration rules. However, I am unable to add sub-categories, and no sub-categories are on the list of available categories to be followed/watched.

Steps to produce this issue:

I attempt to add the sub-category via commands in the appropriate slack channel:

/discourse follow subcategory-name
and
/discourse follow category:subcategory-name

Example error text;

The category:sub-category category cannot be found. Available categories: {and a list of all top level categories appears, with no sub-categories}

I’m on discourse v2.4.0.beta2 +143


I am curious if others have this issue? If you can’t replicate this issue, I’m curious what commends you’ve successfully used in slack to add a sub-category.

I hit the same problem immediately. Found this post trying to find a solution to the issue. Posting here to commiserate with you and should anyone else post an answer.

FWIW - I wanted to sub to the toplevel category anyway which also doesn’t work. My setup was simple:

Category: Help
Sub-Category: General Questions

I expected if I sub’ed to “Help” and then made a topic labelled with “General Questions” it would work fine since that topic also gets the “Help” category added but that didn’t work.

I went back through the steps and noticed the “Category Slug”. I had used “general-questions” and THAT actually worked!

/discourse watch general-questions
Rule created successfully

[Discourse] [12:24 PM]

Rules for this channel
(if multiple rules match a post, the topmost rule is executed)
1) watch posts in help
2) watch posts in general-questions