Description:
Modify the function responsible for assigning tickets to users so that it triggers a notification by calling the sendNotification function. This ensures users are notified immediately when a ticket is assigned to them.
Acceptance Criteria:
1. Update the Ticket Assignment Function
- Integrate the
sendNotification function call into the ticket assignment logic.
- Parameters to be passed to
sendNotification:
pubkey: The public key of the user to whom the ticket is assigned.
event: The event type, e.g., ticket_assigned.
content: A message indicating the ticket assignment, e.g., "You have been assigned a new ticket: {ticket_title}.".
This ticket depends on this
Description:
Modify the function responsible for assigning tickets to users so that it triggers a notification by calling the
sendNotificationfunction. This ensures users are notified immediately when a ticket is assigned to them.Acceptance Criteria:
1. Update the Ticket Assignment Function
sendNotificationfunction call into the ticket assignment logic.sendNotification:pubkey: The public key of the user to whom the ticket is assigned.event: The event type, e.g.,ticket_assigned.content: A message indicating the ticket assignment, e.g.,"You have been assigned a new ticket: {ticket_title}.".This ticket depends on this