Discourse Assign

:discourse2: Summary Discourse Assign provides the ability to assign topics and individual posts (both private and public) to a user or group.
:open_book: Install Guide This plugin is bundled with Discourse core. There is no need to install the plugin separately.

Features

Discourse Assign adds a “tag like” annotation on the topic list and topic header with the username of the assigned user.

It allows you to assign topics to users and list all of the assigned topics.

Also, user groups can be assigned to the topic. In that case, each group member will receive a notification. In group Interaction configuration, you can specify Who can assign this group. By default, is it set to nobody.


In addition to assign to specific topic, individual post can be assigned as well. This option is hidden under “…” (show more) post toolbar. When a post is assigned, information about that is included in the topic title. Also, first post contain link to assigned post.

Assignments can also (optionally) be associated with customizable statuses, and will track changes to their statuses in small_action posts.

Configuration

Site Settings

  • assigns by staff mention if you would like mentions by a staff member of another staff member to assign a topic select this

  • unassign creates tracking post: out of the box when you unassign a topic a post is created in the stream to keep track of the fact it was unassigned, disable to remove the tracking post

  • assigns public : out of the box all assignments are hidden from non-staff, if you want non-staff to be able to see who owns which topic, enable this setting.

  • assign self regex if you would like to use a magic phrase to assign stuff to yourself add a regex here

  • assign other regex if you would like to restrict it so only mentions with a particular phrase are assigned to others add something here

  • unassign on close if a topic is closed it will automatically be silently unassigned

  • unassign on group archive when a message is archived unassign it, once it moves back to inbox reassign it.

  • reassign on open When a topic is opened reassign previously assigned users/groups
  • assigns user url path template to path that is used as a hyperlink for any user assigned tags.
  • assign mailer When to send notification email for assignments

  • remind assigns frequency` Frequency for reminding users about assigned topics.

  • max assigned topics Maximum number of topics that can be assigned to a user.

  • assign allowed on groups controls the list of groups you can assign to. When a topic is assigned to a group it shows up in the individual assign list for all group members. They are notified when this assignment happens.

  • enable assign status Add a customizable status field to every assignment.

  • assign statuses is a list of statuses available to each assignment. The first status is the default status applied to every new assignment.

Listing assigned topics

There are 2 ways of viewing assigned topics,

  • In topic list format:

    • https://sitename.com/latest?assigned=username to view all assigned topics for a user
    • https://sitename.com/latest?assigned=* to view all assigned topics for all users
    • https://sitename.com/latest?assigned=me to view all assigned to current user
    • https://sitename.com/latest?assigned=nobody to view all unassigned
  • The user page activity there is an extra assigned tab visible to staff on activity and messages tabs

CHANGELOG

TODO

  • Keyboard shortcuts

Thank you to McNeel for sponsoring this work!

Last edited by @tobiaseigen 2025-07-16T20:52:51Z

Check documentPerform check on document:
57 个赞

截至目前,这似乎不起作用。如果我属于 A 组,并且有人将 A 组分配给一个主题,那么当我访问 /latest?assigned=me 时,它不会显示给我。

1 个赞

你好 Kuba。 :wave:

这是“最新”页面上的一个过滤器。提到的“个人分配列表”位于 /my/activity/assigned:+1:

谢谢!这两个过滤器行为不同是有什么特别的原因吗?:thinking:

1 个赞

是否有办法配置重复通知的时间?

更新:当一个主题分配给一个组时,组内的用户不会收到电子邮件通知。这是正确的吗?我期望用户能收到电子邮件以及重复电子邮件(每天、每周),就像单独分配给用户一样。

2 个赞

2 篇帖子已拆分为新主题:主题已解决时是否可以移除指派?

抱歉,如果之前已经提到过(我没找到)。

非员工成员可以使用此插件进行分配吗?即使该用户是版主,我也无法让此插件正常工作。该用户必须是管理员。

我的用例:团队负责人(非员工/非管理员)撰写一个主题,并将其分配给团队成员(TL0-3 用户)。团队负责人不一定是站点的管理员或员工,因为我们有很多团队负责人。

即使我能让团队负责人成为版主并让此插件正常工作,那也将非常有帮助。

谢谢,非常感谢!

将“允许分配给组”设置为“是”不就能做到吗?

您好 @Jagster

我已将“分配允许(组)”设置为“所有人”

例如,此用户的权限是:

但这位用户看不到“分配”按钮

有时“每个人”不起作用。您是否尝试过 trust_level_0?

3 个赞

只是快速说明一下——“分配”按钮将作为其自身的选项出现在主题/帖子中,而不是在 :wrench: 菜单下 :slight_smile:

我在我的端上,使用满足以下条件的 TL3 账户进行了测试,并获得了以下结果:

拥有 everyone 权限的 TL3 用户

@carlito 的情况相同,该选项没有出现。


拥有 trust_level_0 权限的 TL3 用户

这按预期工作。

所以……话虽如此,你需要像 @Moin 建议的那样设置 trust_level_0。我认为如果选择了 everyone,它应该可以正常工作,所以这可能是一个 bug?

3 个赞

@Moin@HamMan2118

太棒了,奏效了!

非常感谢你们!

2 个赞

如何查找和编辑分配时发送的电子邮件模板?它与其他电子邮件模板一起不存在?

这个吗?

你可以在 Admin > Site texts 找到它。我搜索了 assign_mailer,它返回了标题(assign_mailer.subject_template)和正文(assign_mailer.text_body_template)。

2 个赞

是的,就是这样,谢谢!!

3 个赞

UI 的哪个位置显示了状态?

我看到一个主题分配给了谁,但我没有看到任何方法可以告知其当前状态。

@tknospdr 你看过这部分吗?

是的,但这只有在您进行更改后才会显示。在您将状态从 X 更改为 Y 之前,没有任何视觉指示表明已分配了状态。

您可以在“编辑作业”选项卡中查看当前状态,该选项卡位于“分配”按钮下方。

您的意思是“编辑分配”,它隐藏在标有“取消分配…”的按钮后面。

如果我不想取消分配,我肯定会犹豫是否要点击该按钮,对吧?

  1. 这不直观。
  2. 您是说您不认为一个视觉提示,让您知道一个主题的分配状态是否显而易见,是个好主意吗?

我只是无法想象这在代码方面是个艰巨的任务,而且让它显而易见是合乎情理的。

3 个赞