How to get the escalated tickets within the last 30 days?
the API has those options to search escalated tickets:
which option do I have to add to the following code to also filter tickets escalated if solution time is overdue?# you can use all following escalation options with this four different ways of escalations
# TicketEscalationTime...
# TicketEscalationUpdateTime...
# TicketEscalationResponseTime...
# TicketEscalationSolutionTime...
# ticket escalation time of more than 60 minutes ago (optional)
TicketEscalationTimeOlderMinutes => -60,
# ticket escalation time of less than 120 minutes ago (optional)
TicketEscalationTimeNewerMinutes => -120,
# tickets with escalation time after ... (optional)
TicketEscalationTimeNewerDate => '2006-01-09 00:00:01',
# tickets with escalation time before ... (optional)
TicketEscalationTimeOlderDate => '2006-01-09 23:59:59',
Code: Select all
my $DRSolutuionOverDueTickets = $Self->{TicketObject}->TicketSearch(
# result (required)
Result => 'COUNT',
DynamicField_TicketEnvironment => {
Equals => '7',
},
# user search (UserID is required)
UserID => 1,
Permission => 'ro' || 'rw',
#Newers than 30 days
TicketChangeTimeNewerMinutes => 43200,
# customer search (CustomerUserID is required)
CustomerUserID => $Self->{UserID},
Permission => 'ro',
);