How to automatically tag a CI as Priority 1

quiksilver
Mega Guru

Hi fellow S-NOWmen,

Just recently purchased service-now for our company, (After waiting for a long time), now I was tasked to provide a demo of it, and the new features. So here's what I want to do first,

I know you can set urgency base on VIP status of a caller, just like in the wiki. But I'm having problem translating it to a CI. I want to make the priority set to 1, if I choose a certain CI. well hoping it's base on a field in a CI.

thanks for your help..

Cheers.

quik

2 REPLIES 2

Mark Stanger
Giga Sage

Create a new field called 'Priority' on the Configuration Item table.

Personalize the dictionary for this field and make the following changes:
- Choice: 'Dropdown with 'None''
- Choice Table: 'Incident'
- Choice Field: 'Priority'

Now you can set a priority value on your CI records that you can look up using a client script.

Create an 'On Change' client script on the Incident table that reacts to a change of the 'Configuration Item' field with the following script value.


function onChange(control, oldValue, newValue, isLoading) {
var ciPri = g_form.getReference('cmdb_ci').u_priority;
g_form.setValue('priority', ciPri);
}


Note that out of the box, the priority field is calculated based on the Impact and Urgency selected. If you do not want this calculation to happen, you need to disable the 2 client scripts on the incident table that make this happen.


thanks a lot mark