Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

incident priority update

shabbir9
Tera Contributor

 

Hi

 

Requirement : if incident caller is "A", impact 1 ,urgency 1 we have to set priority 1 can anyone help me in the script how to achieve this

3 REPLIES 3

Anshul123
Tera Contributor

Use Before BR and Select Incident Table

if(current.caller_id =='A'){

current.impact=='1';

current.Urgency=='1';

gs.addInfoMessage("Priority is 1");

}

 or you can use filter in Br 

 

 

 

Aman Kumar S
Kilo Patron

Hi @shabbir9 

You can go with UI policy.

Create a UI policy as below and mark run script as true and add below script:

uipolicy1runscript.PNGuipolicy1.PNG

Best Regards
Aman Kumar

Dr Atul G- LNG
Tera Patron
Tera Patron

Hi @shabbir9 

 

Go OOTB way , no code need.

 

If it is only for specific user, better create Data look up and set Impact and urgency and on basis of same Priority will be populated. 

*************************************************************************************************************
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.

Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]

****************************************************************************************************************