# Tickets 插件 🎟

**URL:** https://meta.discourse.org/t/tickets-plugin/97914
**Category:** Plugin
**Tags:** pavilion
**Created:** [2018 年9 月 24 日 07:57 UTC](https://meta.discourse.org/t/tickets-plugin/97914 "2018-09-24T07:57:31Z")
**Posts on this page:** 20
**Page:** 11

<div class="post-metadata">

### 作者： ![IreneT](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/irenet/32/305959_2.png) [@IreneT](https://meta.discourse.org/u/IreneT)
#### 发布日期： [2023 年6 月 13 日 19:54 UTC](https://meta.discourse.org/t/tickets-plugin/97914/208 "2023-06-13T19:54:30Z")

</div>

这是最新错误的详细信息 @RGJ 谢谢`

```plaintext
`Message (9 copies reported)

NoMethodError (undefined method `username' for #<Group id: 44, name: "Coaches", created_at: "2023-04-27 17:04:39.620341000 +0000", updated_at: "2023-04-27 17:04:39.620341000 +0000", automatic: false, user_count: 2, automatic_membership_email_domains: "", primary_group: false, title: nil, grant_trust_level: 1, incoming_email: nil, has_messages: false, flair_bg_color: "", flair_color: "", bio_raw: "All coaches who provide member coaching support in...", bio_cooked: "<p>All coaches who provide member coaching support...</p>", allow_membership_requests: false, full_name: "Coaches", default_notification_level: 3, visibility_level: 0, public_exit: false, public_admission: false, membership_request_template: nil, messageable_level: 99, mentionable_level: 99, smtp_server: nil, smtp_port: nil, smtp_ssl: nil, imap_server: nil, imap_port: nil, imap_ssl: nil, imap_mailbox_name: "", imap_uid_validity: 0, imap_last_uid: 0, email_username: nil, email_password: nil, publish_read_state: false, members_visibility_level: 0, imap_last_error: nil, imap_old_emails: nil, imap_new_emails: nil, flair_icon: "", flair_upload_id: nil, allow_unknown_sender_topic_replies: false, smtp_enabled: false, smtp_updated_at: nil, smtp_updated_by_id: nil, imap_enabled: false, imap_updated_at: nil, imap_updated_by_id: nil, email_from_alias: nil, assignable_level: 99>)
(eval):4:in `_fast_attributes'
(eval):9:in `_fast_attributes'
app/controllers/application_controller.rb:549:in `render_json_dump'
app/controllers/application_controller.rb:418:in `block in with_resolved_locale'
app/controllers/application_controller.rb:418:in `with_resolved_locale'
lib/middleware/omniauth_bypass_middleware.rb:74:in `call'
lib/content_security_policy/middleware.rb:12:in `call'
lib/middleware/anonymous_cache.rb:369:in `call'
config/initializers/100-quiet_logger.rb:20:in `call'
config/initializers/100-silence_logger.rb:29:in `call'
lib/middleware/enforce_hostname.rb:24:in `call'
lib/middleware/request_tracker.rb:228:in `call'

Backtrace

activemodel (7.0.4.3) lib/active_model/attribute_methods.rb:458:in `method_missing'
active_model_serializers (0.8.4) lib/active_model/serializer.rb:99:in `block in attribute'
(eval):4:in `_fast_attributes'
active_model_serializers (0.8.4) lib/active_model/serializer.rb:468:in `rescue in attributes'
active_model_serializers (0.8.4) lib/active_model/serializer.rb:455:in `attributes'
active_model_serializers (0.8.4) lib/active_model/serializer.rb:480:in `_serializable_hash'
active_model_serializers (0.8.4) lib/active_model/serializer.rb:359:in `serializable_hash'
active_model_serializers (0.8.4) lib/active_model/serializer.rb:343:in `as_json'
plugins/discourse-tickets/serializers/tickets/ticket_serializer.rb:29:in `assigned'
(eval):9:in `_fast_attributes'

Env

HTTP HOSTS: sandy.albacore.co`

```

---

<div class="post-metadata">

### 作者： ![discoursejl](https://avatars.discourse-cdn.com/v4/letter/d/9de0a6/32.png) [@discoursejl](https://meta.discourse.org/u/discoursejl)
#### 发布日期： [2023 年8 月 3 日 01:31 UTC](https://meta.discourse.org/t/tickets-plugin/97914/209 "2023-08-03T01:31:17Z")

</div>

问题：有人目前在使用这个支持/工单插件吗：

> [@Tickets Plugin tickets](https://meta.discourse.org/t/tickets-plugin/97914):
>
> Repo Summary This plugin adds a ticketing system to Discourse. It requires tagging to be enabled and works best alongside the [Assign Plugin](https://meta.discourse.org/t/discourse-assign/58044). It is based on @tobiaseigen’s [original spec](https://meta.discourse.org/t/using-discourse-as-ticket-system-so-no-balls-are-dropped-woman-juggling/82698), and has been built in collaboration with @tobiaseigen and an awesome [Ruby for Good team](https://community.namati.org/t/ruby-for-good-2018-and-the-global-legal-empowerment-network/44159), for the benefit of both [Namati](https://namati.org) and the Discourse community. Notes When you install the plugin, three new tag groups are added tickets\_priority, tickets\_reason and tickets\_status. Add tags to these groups (at /tag\_group…

如果在使用，它是否正常工作并且已更新？或者，如果您有其他选项，我很乐意了解一下。

---

<div class="post-metadata">

### 作者： ![JonM](https://avatars.discourse-cdn.com/v4/letter/j/6f9a4e/32.png) [@JonM](https://meta.discourse.org/u/JonM)
#### 发布日期： [2023 年8 月 6 日 15:26 UTC](https://meta.discourse.org/t/tickets-plugin/97914/210 "2023-08-06T15:26:40Z")

</div>

+1，我也想知道！

---

<div class="post-metadata">

### 作者： ![letitia\_jones](https://avatars.discourse-cdn.com/v4/letter/l/e0b2c6/32.png) [@letitia\_jones](https://meta.discourse.org/u/letitia_jones)
#### 发布日期： [2023 年8 月 9 日 17:50 UTC](https://meta.discourse.org/t/tickets-plugin/97914/211 "2023-08-09T17:50:37Z")

</div>

这是否也会在 Github 中创建一个工单？

---

<div class="post-metadata">

### 作者： ![merefield](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/merefield/32/176214_2.png) [@merefield](https://meta.discourse.org/u/merefield)
#### 发布日期： [2023 年8 月 9 日 19:21 UTC](https://meta.discourse.org/t/tickets-plugin/97914/212 "2023-08-09T19:21:34Z")

</div>

不。

总的来说，我认为这个插件非常需要一些重要的企业/公司赞助来添加一些急需的功能（例如，允许任意组访问工单仪表板，而不仅仅是管理员等）。

---

<div class="post-metadata">

### 作者： ![Livvux](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/livvux/32/325633_2.png) [@Livvux](https://meta.discourse.org/u/Livvux)
#### 发布日期： [2023 年9 月 9 日 12:48 UTC](https://meta.discourse.org/t/tickets-plugin/97914/213 "2023-09-09T12:48:22Z")

</div>

您好，  
这个还管用吗？  
我无法创建工单。

---

<div class="post-metadata">

### 作者： ![reswild](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/reswild/32/132236_2.png) [@reswild](https://meta.discourse.org/u/reswild)
#### 发布日期： [2023 年11 月 21 日 15:37 UTC](https://meta.discourse.org/t/tickets-plugin/97914/214 "2023-11-21T15:37:44Z")

</div>

[quote=“Nick\_Chomey, post:176, topic:97914”]  
我稍微看了一下代码，注意到有几个地方写着诸如 `currentUser.staff`、`is_staff` 等等……所以我猜想，要么\n\n1. 放宽/移除这个规定，\n2. 添加另一个用户组（例如 TicketsTeam），我们可以自己创建和定义，或者\n3. 在 Tickets 设置中添加某种自定义机制，允许我们定义哪些组可以访问 Tickets。\n[/quote]\n\n我做了一些测试，放宽了规则，只要用户可以编辑主题，任何人都可以创建和编辑工单，这似乎按预期工作。我对 Ruby 的经验很少，所以我觉得自己没有资格正确实现和测试这一点，但这是我在我的开发站点上尝试的更改：[Allow non-staff to add and edit tickets · reswild/discourse-tickets@8c3d0d5 · GitHub](https://github.com/reswild/discourse-tickets/commit/8c3d0d5ec714775a981006c53a0fcf80d12881bd)

---

<div class="post-metadata">

### 作者： ![hellekin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/hellekin/32/51636_2.png) [@hellekin](https://meta.discourse.org/u/hellekin)
#### 发布日期： [2024 年6 月 12 日 17:17 UTC](https://meta.discourse.org/t/tickets-plugin/97914/216 "2024-06-12T17:17:22Z")

</div>

这是 #Contribute > Bug @angus，点击 🎫 Ticket 按钮时：

```plaintext
弃用通知：DButton 不再支持将 @action 作为字符串使用。请重构为使用闭包动作。[弃用 ID: discourse.d-button-action-string] deprecated.js:55
未捕获（在 promise 中）TypeError: e.target 未定义
    assign task-actions.js:88
    assign tickets-controls.js:115
    Ember 2
    _triggerAction d-button.js:105
    click d-button.js:84
task-actions.js:88

```

---

<div class="post-metadata">

### 作者： ![angus](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/angus/32/341715_2.png) [@angus](https://meta.discourse.org/u/angus)
#### 发布日期： [2024 年6 月 17 日 09:25 UTC](https://meta.discourse.org/t/tickets-plugin/97914/217 "2024-06-17T09:25:11Z")

</div>

感谢 @hellekin 的报告。不幸的是，这个插件在我的优先级列表中排得很靠后，而且由于我确实没有精力，短期内不太可能得到任何关注。我现在将把它标记为 #broken。

---

<div class="post-metadata">

### 作者： ![RGJ](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/rgj/32/523185_2.png) [@RGJ](https://meta.discourse.org/u/RGJ)
#### 发布日期： [2024 年8 月 15 日 06:36 UTC](https://meta.discourse.org/t/tickets-plugin/97914/219 "2024-08-15T06:36:58Z")

</div>

Discourse 3.3 的大多数问题，包括 DButton 问题，现已得到解决。

---

<div class="post-metadata">

### 作者： ![JayEnjoy](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jayenjoy/32/455596_2.png) [@JayEnjoy](https://meta.discourse.org/u/JayEnjoy)
#### 发布日期： [2024 年10 月 30 日 11:25 UTC](https://meta.discourse.org/t/tickets-plugin/97914/220 "2024-10-30T11:25:02Z")

</div>

大家好，

Discourse 3.4.0 插件出现了一些错误：

1. 新主题表单上没有工单图标。
2. 工单仪表板界面混乱。

有什么解决办法吗？

 ![这张图片似乎是网页的截图，带有导航栏和搜索栏，可能是一个允许用户搜索信息或访问各种功能的网站或应用程序。如果您想用一句话来描述这张图片，可以这样回答：这张图片是网页的截图，带有导航栏和搜索栏，可能是一个允许用户搜索信息或访问各种功能的网站或应用程序。（由 AI 题注）](https://global.discourse-cdn.com/meta/original/4X/f/e/c/fec7e9c9ab65e33582233556fdf6634a190bde66.png)

---

<div class="post-metadata">

### 作者： ![blazyrawr](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/blazyrawr/32/497796_2.png) [@blazyrawr](https://meta.discourse.org/u/blazyrawr)
#### 发布日期： [2025 年4 月 6 日 20:33 UTC](https://meta.discourse.org/t/tickets-plugin/97914/221 "2025-04-06T20:33:35Z")

</div>

我也遇到了问题，在主题的工单创建中没有任何选项。

 ![image](https://global.discourse-cdn.com/meta/original/4X/7/5/8/75877924ab8d7b8d498fd694adfc8978fd279fb2.png)

---

<div class="post-metadata">

### 作者： ![hellekin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/hellekin/32/51636_2.png) [@hellekin](https://meta.discourse.org/u/hellekin)
#### 发布日期： [2025 年8 月 21 日 10:54 UTC](https://meta.discourse.org/t/tickets-plugin/97914/222 "2025-08-21T10:54:05Z")

</div>

对于 Priority、Status 和 Reason，您应该访问 `/tag_groups` 并将标签添加到 `tickets_*` 组。例如：

| group | tags  
|-|  
| tickets\_priority | low, medium, high, critical  
| tickets\_status | new, in-progress, on-hold, resolved, closed, wont-fix  
| tickets\_reason | proj1, proj2, proj3, question, feedback, maintenance

---

<div class="post-metadata">

### 作者： ![hellekin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/hellekin/32/51636_2.png) [@hellekin](https://meta.discourse.org/u/hellekin)
#### 发布日期： [2025 年8 月 23 日 12:32 UTC](https://meta.discourse.org/t/tickets-plugin/97914/223 "2025-08-23T12:32:20Z")

</div>

但我认为这个话题应该像@angus去年建议的那样被标记为#broken，因为它显示了一个弃用警告，并且有一些未解决的bug，没有人会很快处理。

@merefield建议看看[https://meta.discourse.org/t/discourse-workflow/347110。](https://meta.discourse.org/t/discourse-workflow/347110%E3%80%82)

---

<div class="post-metadata">

### 作者： ![spj](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/spj/32/257449_2.png) [@spj](https://meta.discourse.org/u/spj)
#### 发布日期： [2025 年11 月 21 日 18:22 UTC](https://meta.discourse.org/t/tickets-plugin/97914/224 "2025-11-21T18:22:31Z")

</div>

我确认我在安装了 Tickets 插件的 v0.2 (492353a20b1bc2bbcf739f1c88aaa46771e83561) 后的 Discourse 3.5.2 中看到了与 @JayEnjoy 和 @blazyrawr 相同的问​​题。听起来这个问题不会得到解决。除了已经提到的实验性工作流程插件之外，还有其他可行的替代品吗？

---

<div class="post-metadata">

### 作者： ![Neil\_Evans](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/neil_evans/32/511055_2.png) [@Neil\_Evans](https://meta.discourse.org/u/Neil_Evans)
#### 发布日期： [2026 年1 月 2 日 16:50 UTC](https://meta.discourse.org/t/tickets-plugin/97914/225 "2026-01-02T16:50:25Z")

</div>

看起来这个插件不再与最新版本的 Discourse 兼容了。当我尝试启用它时，我收到了这个错误：

> [@Handling the 'component-template-resolving' deprecation](https://meta.discourse.org/t/handling-the-component-template-resolving-deprecation/370019):
>
> As part of our preparation for the Ember 6 upgrade, we have now enabled warning banners for the “component template resolving” deprecation. To find more information about the issue, open up the browser developer console (F12), and look for a message including [deprecation id: component-template-resolving] This message will include the name of the affected component (in this case components/my-component), which should help you to isolate the problem t…

---

<div class="post-metadata">

### 作者： ![david](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/david/32/157490_2.png) [@david](https://meta.discourse.org/u/david)
#### 发布日期： [2026 年1 月 5 日 14:45 UTC](https://meta.discourse.org/t/tickets-plugin/97914/226 "2026-01-05T14:45:00Z")

</div>

理论上，`component-template-resolving` 横幅仍然只是一个警告——它不应该导致任何功能丢失。

您在使用插件时遇到任何问题了吗？还是仅仅看到了红色的警告横幅？

---

<div class="post-metadata">

### 作者： ![Neil\_Evans](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/neil_evans/32/511055_2.png) [@Neil\_Evans](https://meta.discourse.org/u/Neil_Evans)
#### 发布日期： [2026 年1 月 5 日 17:10 UTC](https://meta.discourse.org/t/tickets-plugin/97914/227 "2026-01-05T17:10:39Z")

</div>

我在“管理”下找不到工单仪表板——在创建主题时也看不到任何“工单”选项——所以假设它不起作用。

然而，我刚刚再次访问了它——并手动导航到 /admin/tickets——但我只看到了这个？

 ![image](https://global.discourse-cdn.com/meta/original/4X/d/9/8/d98ab7523f58b2c64a5bd44fda12bc30c3357971.png)

---

<div class="post-metadata">

### 作者： ![RGJ](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/rgj/32/523185_2.png) [@RGJ](https://meta.discourse.org/u/RGJ)
#### 发布日期： [2026 年2 月 1 日 10:17 UTC](https://meta.discourse.org/t/tickets-plugin/97914/228 "2026-02-01T10:17:39Z")

</div>

我们已经使插件现代化，它可以在 v2026.1 上再次运行了 🎉  
现代化工作尚未完全完成，但我们已经完成了所有使其恢复工作所必需的操作。  
工单仪表板现在可以从侧边栏访问，因为以前的按钮位置已不存在。

 ![image](https://global.discourse-cdn.com/meta/original/4X/d/c/2/dc29d0a67354dcfb15e50dc6349d9211d3297718.png)

@angus PR [在这里](https://github.com/paviliondev/discourse-tickets/pull/18)，有时间请审阅并合并！

---

<div class="post-metadata">

### 作者： ![angus](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/angus/32/341715_2.png) [@angus](https://meta.discourse.org/u/angus)
#### 发布日期： [2026 年2 月 1 日 10:32 UTC](https://meta.discourse.org/t/tickets-plugin/97914/229 "2026-02-01T10:32:20Z")

</div>

谢谢理查德，已合并！

[上一页](https://meta.discourse.org/t/tickets-plugin/97914.md?page=10)
