Kernel::System::Priority

NAME

Kernel::System::Priority – priority lib

DESCRIPTION

All ticket priority functions.

PUBLIC INTERFACE

new()

create an object

    my $PriorityObject = $Kernel::OM->Get('Kernel::System::Priority');

PriorityList()

return a priority list as hash

    my %List = $PriorityObject->PriorityList(
        Valid => 0,
    );

PriorityGet()

get a priority

    my %List = $PriorityObject->PriorityGet(
        PriorityID => 123,
        UserID     => 1,
    );

PriorityAdd()

add a ticket priority

    my $True = $PriorityObject->PriorityAdd(
        Name            => 'Prio',
        ValidID         => 1,
        ForegroundColor => '#123456', # optional
        BackgroundColor => '#123456', # optional
        UserID          => 1,
    );

PriorityUpdate()

update a existing ticket priority

    my $True = $PriorityObject->PriorityUpdate(
        PriorityID      => 123,
        Name            => 'New Prio',
        ValidID         => 1,
        ForegroundColor => '#123456',
        BackgroundColor => '#123456',
        UserID          => 1,
    );

PriorityLookup()

returns the id or the name of a priority

    my $PriorityID = $PriorityObject->PriorityLookup(
        Priority => '3 normal',
    );

    my $Priority = $PriorityObject->PriorityLookup(
        PriorityID => 1,
    );
Scroll to Top