Service Desk Practitioners Forum
cancel

using device.severity field to calculate priority in Problem Module

Highlighted
Erich Sanchez
New Member.

using device.severity field to calculate priority in Problem Module

Hello,

I need to use the severity value of a CI in the calculation of the priority in the Problem Module. I know this value is located in the field device.severity in the table device.

I found the calculation of the priority is made using the javascript function named "PriorityCalc". How can I modify that function to use the device.severity value in the calculation of the priority.

function getPriorityCalc()
{
var iX = parseInt(vars.$L_file.initial_impact);
var iY = parseInt(vars.$L_file.severity);

if ((iX!=null) && (iY!=null))
{
var priority = Math.floor(((iX+iY)/2));
vars.$L_file.priority_code=priority.toString();
}
return true;
}

Regards,

Erich
1 REPLY
Erich Sanchez
New Member.

Re: using device.severity field to calculate priority in Problem Module

adsf