NAME
Kernel::System::ITSMCIPAllocate – criticality
, impact and priority allocation lib
PUBLIC INTERFACE
new()
create an object
use Kernel::System::ObjectManager;
local $Kernel::OM = Kernel::System::ObjectManager->new();
my $ITSMCIPAllocateObject = $Kernel::OM->Get('Kernel::System::ITSMCIPAllocate');
AllocateList()
return a two dimensional hash reference of allocations
my $ListRef = $CIPAllocateObject->AllocateList(
UserID => 1,
);
$ListRef
is something like
$ListRet = {
'3 normal' => {
'1 very low' => 1,
'3 normal' => 2,
'4 high' => 3,
},
'5 very high' => {
'2 low' => 3,
'3 normal' => 4,
'4 high' => 5,
},
};
meaning that the Criticality
'3 normal' and the Impact '1 very low' suggest the PriorityID '1'.
AllocateUpdate()
update the allocation of criticality
, impact and priority
my $True = $CIPAllocateObject->AllocateUpdate(
AllocateData => $DataRef, # 2D hash reference
UserID => 1,
);
PriorityAllocationGet()
return the priority id of a criticality
and an impact
my $PriorityID = $CIPAllocateObject->PriorityAllocationGet(
Criticality => '1 very low',
Impact => '3 normal',
);