Implement ticket watch feature like jira,clickup using laravel
Hello there,
I'm working on a support ticket system project, which have features like add tickets, assign to member groups, commenting for ticket, attaching files.
Now the client wants a feature like watching the ticket. So if a user decide to watch the specific ticket, each activity related to that particular ticket should notify to the user.(Ex: through email)
I searched the internet and didn't find anything like this. So if anyone knows a library/package or a way to this, your contribution is highly appreciated.
@avishkame If I understand you correctly, why don't you simply implement this feature instead of using a package?
Here could be the approach:
Create a table to keep information on who (user) is watching which ticket. It's kind of like a pivot table.
Any change that happens on any ticket, it should fire and event. The respective listener will find out the list of the watchers for this ticket and then send a notification (could be email / database / whatever????)
I’d add a watchers table with user_id and ticket_id, then a simple toggle method. On ticket updates, fire a notification to all watchers using Laravel’s notifications or queued mails.
Hmmm ... I wonder ... what's your experience in programming ?
As @tisuchi said, you just have to create a pivot table to know who is watching which ticket and then fire an event for each action done related to a ticket.