TicketSLASet#
NAME#
Kernel::System::ProcessManagement::TransitionAction::TicketSLASet - A module to set the ticket SLA
DESCRIPTION#
All TicketSLASet functions.
PUBLIC INTERFACE#
new()#
Don’t use the constructor directly, use the ObjectManager instead:
my $TicketSLASetObject = $Kernel::OM->Get('Kernel::System::ProcessManagement::TransitionAction::TicketSLASet');
Run()#
Runs TransitionAction TicketSLASet.
my $Success = $TicketSLASetActionObject->Run(
UserID => 123,
# Ticket contains the result of TicketGet including dynamic fields
Ticket => \%Ticket, # required
ProcessEntityID => 'P123',
ActivityEntityID => 'A123',
TransitionEntityID => 'T123',
TransitionActionEntityID => 'TA123',
# Config is the hash stored in a Process::TransitionAction's config key
Config => {
SLA => 'MySLA',
# or
SLAID => 123,
UserID => 123, # optional, to override the UserID from the logged user
}
);
Returns:
my $Success = 1; # 0
_CheckSLA()#
checks if a SLA is assigned to a Service
my $Success = _CheckSLA(
ServiceID => 123,
SLAID => 123,
);
Returns:
$Success = 1; # or undef