Kernel::System::Priority - priority lib
All ticket priority functions.
create an object
my $PriorityObject = $Kernel::OM->Get('Kernel::System::Priority');
return a priority list as hash
my %List = $PriorityObject->PriorityList( Valid => 0, );
get a priority
my %List = $PriorityObject->PriorityGet( PriorityID => 123, UserID => 1, );
add a ticket priority
my $True = $PriorityObject->PriorityAdd( Name => 'Prio', ValidID => 1, UserID => 1, );
update a existing ticket priority
my $True = $PriorityObject->PriorityUpdate( PriorityID => 123, Name => 'New Prio', ValidID => 1, UserID => 1, );
returns the id or the name of a priority
my $PriorityID = $PriorityObject->PriorityLookup( Priority => '3 normal', ); my $Priority = $PriorityObject->PriorityLookup( PriorityID => 1, );
This software is part of the OTRS project (https://otrs.org/).
This software comes with ABSOLUTELY NO WARRANTY. For details, see the enclosed file COPYING for license information (GPL). If you did not receive this file, see https://www.gnu.org/licenses/gpl-3.0.txt.