The Zurich release has arrived! Interested in new features and functionalities? Click here for more

I need to populate a message when ticket is P1

shaik_irfan
Tera Guru

Hello Everyone,

I have a requirement where i need to populate if the Priority changes to Critical i.e: P1.

Can anyone help me with the script for this and also please let me know the best practice to populating message whether it is Client script or BR.

On incident table when ever i choose Impact & Urgency as High Priority changes to Critical when ever it changes critical i just to populate a message saying that it is P1 ticket

Thanks in Advance,

Irfan

1 ACCEPTED SOLUTION

Yes, you can throw a warning on P1 incidents form an onChange client script. I would do it something like this (untested code ahead)


find_real_file.png


View solution in original post

13 REPLIES 13

Deepak Ingale1
Mega Sage

Hi Irfan,



You can write onChange client script on impact and urgency



code would be like



if (newValue == 1) { // for impact


alert("Impact is escalated ");


}



if (newValue == 1) // for urgency {


  alert("Urgency is escalated");


}



If you require something for P1, then you have to write same logic for Priority field


Rajesh Mushke
Mega Sage
Mega Sage

Hi Shaik,



create onupdate Business Rule, put message like -   priority changed to "Critical"




Thanks,
Rajashekhar Mushke
Rising star : 2022 - 2024
Community Leader -2018
Connect me on LinkedIn : Rajashekhar Mushke

Chuck Tomasi
Tera Patron

There is already an OOB client script that does this. It is deactivated by default.   Change YOURINSTANCE in the URL below to your instance name.



https://YOURINSTANCE.service-now.com/nav_to.do?uri=sys_script_client.do?sys_id=09b773e8c0a800050163c...


You know so many secrets about the platform !!!