How to set priority on sc_task

twray
Tera Contributor

So I tried using this method to set the priority. 

https://www.servicenow.com/community/developer-forum/setting-priority-on-sctasks/m-p/1946610

 

I created this since I think I needed to update it since it might be out of date. 

twray_0-1696352341699.png

One question I had that might be why its not working is where do I get sys_id from. I got mine from try it SP. 

I want to update the priority for the sc_task. All of mine have been set to 5-Planning and I can't seem to change it. I currently have select box variable in my catalog item for priority, with the priorities listed in the picture as variables to choose from. 

4 REPLIES 4

Sandeep Rajput
Tera Patron
Tera Patron

@twray You are mixing client and server side scripts here. Could you please post the snapshot of your Catalog item this will give an idea about the fields that are there on your catalog item.

Hi, attached here are some variables from my catalog item. 

twray_0-1696353971981.png

twray_1-1696353994315.png

 

Dan Covic2
Tera Contributor

As @Sandeep Rajput has pointed out, in your case you have to create a Business Rule on the sc_task table instead of a Client Script.

twray
Tera Contributor

Hi Dan,

How do you create a business rule on the sc_task table? Where should I go for  this.