Ho to set Priority to High for VIP User

hongsok
Tera Contributor

Dear all,

I have a table that extend from Task table under Application Scope. I would like to set the Priority high when the requester is VIP.

I would appreciate you help. 

Regards,

Hong

1 ACCEPTED SOLUTION

Anish kumar
Kilo Guru

Hi hongsok

 

We can do this with business rule but business rule will work after you saved the form.

With client script once you change the caller and if caller is vip then immediately priority will be set to 1- High

 

so Create a Onchange Client script on Called field and add below code

 

find_real_file.png

 

function onChange(control, oldValue, newValue, isLoading, isTemplate) {

if (isLoading || newValue === '') {

return;

}

var callerID = g_form.getReference('caller_id', setPriority);

function setPriority(callerID) {

if (callerID.vip == 'true') {

// Priority is depend on Imapct and Urgency.You need to set Impact and Urgency

g_form.setValue('impact', 1);
g_form.setValue('urgency', 1);

}
}
}

 

Kindly mark it correct and helpful if it solves your issue.

Thanks and Regards,

Anish kumar

View solution in original post

5 REPLIES 5

Tanushree Doiph
Mega Guru

hey,

Create a on Before insert BR and under conditions, select

show related fields and then select caller->Related fields

and select vip under caller is true

Then go to actions,

set impact as high

urgency as medium

priority as 2.

Save.

 

Thanks

Tanushree

Please mark helpful and correct.

Onkar Pandav
Tera Guru

Hi,

You can create a group with name "VIP" and add users to that group.

And then you can use client script with method isMemberOf();

Priyanka Chandr
Mega Guru

Hi Hongsok,

Create a on Before insert Business Rule and under conditions,

select show related fields and then select caller->Related fields

and select VIP under caller is true

Then go to actions, set impact as high urgency as high priority as High

Save.

 

Kindly mark it correct and helpful if it solves your issue.

 

Thanks and Regards,

Priyanka

 

 

Anish kumar
Kilo Guru

Hi hongsok

 

We can do this with business rule but business rule will work after you saved the form.

With client script once you change the caller and if caller is vip then immediately priority will be set to 1- High

 

so Create a Onchange Client script on Called field and add below code

 

find_real_file.png

 

function onChange(control, oldValue, newValue, isLoading, isTemplate) {

if (isLoading || newValue === '') {

return;

}

var callerID = g_form.getReference('caller_id', setPriority);

function setPriority(callerID) {

if (callerID.vip == 'true') {

// Priority is depend on Imapct and Urgency.You need to set Impact and Urgency

g_form.setValue('impact', 1);
g_form.setValue('urgency', 1);

}
}
}

 

Kindly mark it correct and helpful if it solves your issue.

Thanks and Regards,

Anish kumar