Task Priority should be populated according to the RITM Priority

Mallika Bhupath
Tera Contributor

Hi all,

Currently the RITM and Task priority is set to None. However, when a manager decides to select either a priority of 1,2,3 0r 4 on the RITM, the same priority has to be reflected on the Task. 

We have multiple catalog items therefore changing the workflow would be tedious.

I have tried using the business rule too but it does not seem to work.

Any help will be appreciated.

Thanks,

Mallika

1 ACCEPTED SOLUTION

vkachineni
Kilo Sage
Kilo Sage

The BR should run on "sc_req_item" on update when priority changes.

 

find_real_file.png

Add your items in the filter along with priority filters

find_real_file.png

var scTaskGR = new GlideRecord('sc_task');
scTaskGR.addQuery('request_item', current.sys_id); //load the sc tasks. There could be multiple.
scTaskGR.query();
while (scTaskGR.next()) {
	scTaskGR.priority = current.priority;
	scTaskGR.update();
}

 

 

Please mark Correct and click the Thumb up if my answer helps you resolve your issue. Thanks!
Vinod Kumar Kachineni
Community Rising Star 2022

View solution in original post

13 REPLIES 13

Then, you can do a thing on the Maintain Item item form where we define the name and other things of the request just create a checkbox and for all the items where you want to do it make the checkbox value true.

And in business rule you will just have to use condition item.checkboxfieldname is true

Please mark answer correct/helpful based on Impact.

Thanks.

Hi Saurav,

 

Can you please share some screenshots on how to define and create a checkbox.

 

Thanks,

Mallika

Hello

It is mindnight over here Will share one tomorrow

Thanks

Hi Saurav,

Can you please share the screenshots for defining and creating the checkbox.

 

Thanks,

Mallika