Add assignee changed notification event support
This commit is contained in:
@@ -6,12 +6,14 @@ enum NotificationEventType: string
|
||||
{
|
||||
case TicketStatusChanged = 'ticket_status_changed';
|
||||
case TicketCreate = 'ticket_create';
|
||||
case TicketAssigneeChanged = 'ticket_assignee_changed';
|
||||
|
||||
public function label(): string
|
||||
{
|
||||
return match ($this) {
|
||||
self::TicketStatusChanged => 'Ticket status changed',
|
||||
self::TicketCreate => 'Ticket create',
|
||||
self::TicketAssigneeChanged => 'Assignee changed',
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
@@ -13,6 +13,10 @@ enum NotificationFilterAttribute: string
|
||||
case TicketUrl = 'ticket.url';
|
||||
case ActorId = 'actor.id';
|
||||
case ActorName = 'actor.name';
|
||||
case AssigneeFromId = 'assignee.from.id';
|
||||
case AssigneeFromName = 'assignee.from.name';
|
||||
case AssigneeToId = 'assignee.to.id';
|
||||
case AssigneeToName = 'assignee.to.name';
|
||||
case StatusFromId = 'status.from.id';
|
||||
case StatusFromLabel = 'status.from.label';
|
||||
case StatusToId = 'status.to.id';
|
||||
@@ -30,6 +34,10 @@ enum NotificationFilterAttribute: string
|
||||
self::TicketUrl => 'Ticket URL',
|
||||
self::ActorId => 'Actor ID',
|
||||
self::ActorName => 'Actor name',
|
||||
self::AssigneeFromId => 'From assignee ID',
|
||||
self::AssigneeFromName => 'From assignee name',
|
||||
self::AssigneeToId => 'To assignee ID',
|
||||
self::AssigneeToName => 'To assignee name',
|
||||
self::StatusFromId => 'From status ID',
|
||||
self::StatusFromLabel => 'From status label',
|
||||
self::StatusToId => 'To status ID',
|
||||
|
||||
Reference in New Issue
Block a user