Tickets Plugin šŸŽŸ

Repo

Summary

This plugin adds a ticketing system to Discourse. It requires tagging to be enabled and works best alongside the Assign Plugin.

It is based on @tobiaseigenā€™s original spec, and has been built in collaboration with @tobiaseigen and an awesome Ruby for Good team, for the benefit of both Namati 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_groups) to add tickets to each ticket type.

  • Tickets are added in the ā€˜edit topicā€™ UI (see screenshot below).

  • You can create topics or PMs with tickets via the api using is_ticket and a tags[] for each ticket tag (learn more)

  • There are four site settings you need to look at. To access quickly, go to ADMIN > SETTINGS on your instance and search for tickets.

    • tickets enabled: Enable tickets on topics (requires tagging to be enabled).

    • tickets icon: set the font-awesome class of the tickets icon

    • tickets include group: default group to include on private messages with tickets (on Global Legal Empowerment Network forum this is a helpdesk group).

    • tickets redirect assigned: redirects the user from the ā€˜assigned topicsā€™ route in their profile to Tickets dashboard filtered by tickets assigned to them.

    • allow staff to tag pms needs to be enabled if you wish to use tickets on PMs.

Tickets Dashboard

Topic

Hit the pencil icon near the title to edit the Topic meta, which appear like so:

Topic List

Tasks list

This list pulls together bug reports and feature requests that have come up in this discussion below and in the active usage of this plugin by @tobiaseigen and colleagues on the Global Legal Empowerment Network. @angus has agreed to schedule some time regularly to try to chip away at this list via https://discourse.angusmcleod.com.au/c/work/l/agenda, but can always use help! :seedling:

Bugs:

  1. Hijacked link to a userā€™s assigned tickets appears to not work for usernames that have mixed case.
  2. Ticket tags showing up in print view, also for those without access to ticket system

Features weā€™d like to add:

  1. Add ability to indicate the user (or users) a ticket is about.
  2. Add columns on tickets dashboard for date ticket was created and date created, date of last activity.
  3. Hijack :mag: search on tickets dashboard to allow searching for tickets by keyword
  4. Revamp tickets dashboard filtering/sorting/pagination
  5. Add to tickets dashboard default filters and options to quickly see only tickets assigned to me or only open tickets
  6. Add ability to monitor overall health of ticket system (time to resolution, open tickets, etc)
  7. (low priority) Add ā€œSettingsā€ button in /admin/plugins (details)
  8. (low priority) Allow ticket system and ticket tag groups to be renamed (requested by @GeertClaes)

Requested features that are low priority/hard/likely not to be added:

  • add TICKET options to topic menu at bottom as well as topic title edit.
  • notify user of number of open tickets assigned to user every time they log in
  • automated system messages are always tickets marked low, waiting
  • ticket PMs are sent to group messages archive by default so they donā€™t clutter group messages inbox
  • typically when we create a ticket, we set the status tag to #waiting. If there were some way to change this status to #underway when someone replies, that would be a big helpā€¦ if not, we can rely on the ticket dashboard if it shows activity so we know someone has replied and we need to take action.
  • for sake of transparency, would be interesting to indicate in a whisper when ticket tags are added or changed, following the example of the assign behavior.
  • on the flag interface itā€™s possible for moderators to ā€œclaimā€ spam posts. Maybe this is a model we can follow for tickets? This would speed things up - right now the flow is to unassign then assign.

Other discourse functionality that would help

  • bulk select and update ticket priority, status, reason, group, assignee (if not on the UI, then command line queries?)
74 Likes

Awesome! So glad to see this ticket plugin become a reality. Angus has done some terrific work here, and has been very patient with my feature requests and feedback. He deserves a medal. :1st_place_medal:

I hope more communities decide to use this plugin, and help to make it even better by contributing use cases, feedback and code. I am also hoping to see some improvements to other discourse features to make tickets even more awesome.

Weā€™ve been using it on our site for a few weeks already and it works well, though I have yet to properly roll it out to my team. As that happens Iā€™ll be able to give more feedback on whatā€™s working and what needs improvements from our point of view.

For right now, hereā€™s my wish list:

  • improved functionality on topic and message lists for selecting and bulk updating, to e.g. change category, add/remove tags, create ticket, mark solved, open/close, reassign, change priority, change status, etc. (discussed elsewhere)
  • solved plugin: Allow staff to select OP to be solution, if no replies.
  • solved plugin: Prevent staff from selecting whispered replies as solution, as risks exposing private conversation. (discussed elsewhere)
  • ā€œticket system heathā€ statistics, e.g. number of tickets by status, time to completion, ratio of tickets by status, charts showing above over time. Not sure where this should live - is the dashboard extendable through plugins?
  • automatic ticket updates when reply is sent (e.g. change status tag to waiting/underway, add reminder for assignee with interval based on priority, etc)
  • automatic assignee based on ticket reason
  • automatic tickets based on group or group email
  • automatic solved/unsolved based on ticket status
  • default filters and options on dashboard to more quickly see only tickets assigned to me, or only open tickets etc.
  • not directly related but a common ticket task for our helpdesk: UI method for merging users, with ability to choose which email address is primary and which is secondary. (discussed elsewhere)

In case youā€™re wondering, here are some notes on the api method we use for creating tickets. We use it to create a new ticket for each new member as they join, for the purposes of onboarding and welcoming them, and when reaching out to members for feedback when they download resources from our resource library. We also use it when inviting lists of people (e.g. event attendees) to join the network, instead of email.

  • is_ticket = 1
  • tags[] = tag1 each on a separate line, use ticket tags and any additional tags to help find messages later (note square brackets - required!)
  • target_usernames = should always contain helpdesk group accessible to the staff in charge of ticket follow-up. Can contain an email address instead of username to create staged users (handy for sending bulk invites and making them tickets for follow-up)
12 Likes

Agreed I should have started with that :slight_smile: This looks very promising, and your wish list contains several things that Iā€™d probably get to if we get to use this properly here

3 Likes

I am super excited to see this. I currently have my own custom made (mock) ticketing system. It basically converts any PM into a ticket upon user request, adds a ticket number, organizes all tickets under a custom appointed user (@TICKETS) for easier tracking, and notifies admins. We do tagging/assign via discourse options. But this is more elaborate, if you keep developing this I will jump in and try it out :smiley:

1 Like

Interesting! It sounds like youā€™ve got a ā€œsupportā€ use case there, letting a user create a ticket. This system was designed more for internal use for managing tasks and assignments. @tobiaseigen What do you think about allowing users to create tickets?

2 Likes

Our site is a marketplace. Tickets are used between users for managing transactions. Basically, user A strikes a deal with user B via PM. When ready, they click a button converting the PM into a ticket. The PM is assigned a ticket number, and admins are notified. The first one to assign it to him self gets it and manages the transaction.

2 Likes

Do you mean allow users to see and use the tickets interface and see ticket tags on tickets? And see the tickets dashboard?

I can see a use case for it, and also can see it maybe being useful in our community. Assigned and solved is already visible to users. Letting them see the ticket details about their tickets is potentially interesting. But I donā€™t see the need to let them change ticket tags.

If you just mean letting users create tickets but then not see the ticket interface, ticket tags and ticket dashboard, maybe there is a use case for this too. The API can already make tickets while adding messages, so an external form could do it. Maybe a new group setting could enable auto tickets with default ticket status, priority and reason. E.g. include @tickets and the message is made into a ticket.

3 Likes

No. The tickets are basically PMā€™s with an edited title (the includes the ticket number). The tickets are accessible from users inbox.

Interesting. Can you share a screenshot of what your tickets look like? Generally, if you have screenshots that illustrate what you are doing I think that would help us to understand your need better and if/how it fits in with this plugin.

Ticket number: I guess the ticket number could just be the topic ID. Displaying that would be easy, I suspect. I also agree displaying a ticket number would be helpful, as well as in any email notifications about the ticket in the subject line etc. The ability to search by ticket number on the tickets dashboard might also be helpful. But again this is for a different use case than yoursā€¦ more of a helpdesk need for quickly finding a ticket, for example when talking on the phone with someone about their ticket.

This already works - messages that are tickets appear in user inboxes. They are identifiable with tags in the message list. So if users had access to tickets, theyā€™d be able to see the ticket tags. They could also click through to the tickets dashboard, to see only their tickets, which I think would also be handy for them.

@angus I remember when we made a strategic decision to put tickets in the /admin/tickets route instead of /tickets. I guess if giving users access to tickets were to become a thing, weā€™d want to move it.

1 Like

Here are all tickets organized for staff under an account of our choosing, in this case, @CHECKOUT

Here is what the ticket looks like inside. Included in the screenshot it an automated message from @CHECKOUT to the users when they start a ticket.

1 Like

Itā€™s kind of a crude system, but it works :smiley: However, once (if) traffic picks up we will need a more refined ticket system.

Weā€™re talking reminders/performance reports/sorting/etc. Basically, the basics of a good ticketing system.

1 Like

Much of what you are describing is available through this plugin or could be. I think @angus would welcome your contributions to this plugin. I know one area we want to prioritize next is performance reports (I was calling it ticket system health) which is described above somewhere.

Another is functionality for bulk updating tickets from filtered lists. This is still fairly nascent in discourse. But as the number of tickets grows it will be needed.

1 Like

I mainly need this feature to award admins for their work, vs. using it to measure actual response times/etc. (although that is useful info, also). Our site pools all the income and splits the profit among admins. Obviously, who works more gets a bigger share.

3 Likes

Thanks to the great work of @mbcahyono weā€™ve upgraded our (mock) ticket plugin. It now features site-wide notifications for open tickets, and a dedicated ticket area for ticket holders.

3 Likes

Nice! I like the use of a notification about open tickets. Seems to me this should be a proper discourse notification though. Also, it would be handy to have a quick link to display only open tickets on the dashboard.

We also have it as a notification, but weā€™ve encountered ā€œoh I must of missed itā€ and ā€œit got lost with other notificationsā€ responses from users, who neglected open tickets because of those reasons. So, thatā€™s why we have a site-wide banner. We do three way tickets, so to keep the other party waiting to a minimum, we remind users about their tickets in a bold way :smiley:

2 Likes

Is there a way to share that modification? I would really love to have it within my customer support system running on Discourse. :slight_smile:

3 Likes

I like this feature. I will use it when building my own Discourse. :slight_smile:

The support system I have isnā€™t the one listed here, itā€™s a custom made plugin just for my website, so there is no modification to share.

Iā€™m not sure if Iā€™m missing something, but this doesnā€™t seem to be working for me, Iā€™ll list what isnā€™t working right for me.

  • The redirect to the ticket dashboard doesnā€™t seem to follow caps cases; it takes me to admin/tickets?filters=assigned%3Akankuro instead of admin/tickets?filters=assigned%3AKankuro which results in no tickets being shown.
  • The tags donā€™t stick for any of the fields after refreshing or changing pages.
  • Iā€™m not getting any sort of PM or notification to tell when there is a new ticket, not sure if this is intentional or if there is supposed to be some sort of alert to let people know when they have a new ticket.

All Iā€™ve done is installed the plugin, enabled it, added tags to the tag groups, and created a new group with all mods called ā€œhelpdeskā€ and added that to tickets include group.

Any ideas what might be going wrong here?

4 Likes