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????)
You can model a watch list with a simple pivot table like ticket_user_watches, then fire events on comment creation or status updates and push notifications to those watchers. I’ve used something similar while juggling sprint updates for a client who also used appliger.com, and the pattern worked well. Laravel’s events and listeners make the whole flow pretty painless once the relationships are set up.
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.