Display Business Rule

ShiningStar1
Tera Contributor

Hello All,

 

Hello All,

Kindly help me with the below requirement,

If User is securonix admin.

impact=1

urgency =1

Priority = High

If impact =2

urgency = 2

Priority = Low

I have written a display business rule for it, but it does not work:

function executeRule(current, previous /*null when async*/) {

    if (current.impact == 1 && current.urgency == 1 && current.caller_id.user_name == 'securonix admin'){

current.priority = 1;

})(current.previous);

 

Please help me with the script as it doesnot work .

15 REPLIES 15

Hi Sunil,

Thank you for your reply .Once i executed the script it gives the error. Screen shot attached.Can you please reply what needs to be fixed now.