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.

How to change how priority calculate?

Mytno1
Mega Contributor

I'm working on how to change the way priority calculate. I already know how to change it based on other field, but my boss said he want to take it "dynamic".

I created a field in choice list called [u_important], which value range is from 1-5.

find_real_file.png

 

find_real_file.png

 

Now I want to everytime I change the value of category, the priority change as well (not like newValue =="network" > setValue), more like to get the Value of [u_important] from choice list to change the prority value.

For example, If I choose 'software', the sciprt go to choice list and see the value of u_important is 1, so the priority change to 1 as well.

Whenever I choose another, the priority change equal to the value of u_important.

I'm not good at javascript, thank you.

10 REPLIES 10

Dubz
Mega Sage

You don't need javascript to do this. The priority on the incident form is set by a data lookup, you can either amend that one or create your own.

The documentation here explains how to create a new data lookup and you can lookup at how the OOB config is set up by going to system policy > rules > data lookup definitions (and priority lookup rules)

Mytno1
Mega Contributor

Tks, but I don't really understand how that data lookup definitions work. find_real_file.png

 

 

How should I use it:
find_real_file.png

rahulpandey
Kilo Sage
Hi, You don't have to code for this, this can be configured using data lookup. Check below https://docs.servicenow.com/bundle/london-it-service-management/page/product/incident-management/reference/r_PrioritizationOfIncidents.html

How should I setup the My Lookup Definition pls?
here is my find_real_file.png

 

find_real_file.png

 

find_real_file.png