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

What is the change in the workflows that you are concern about?

 

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

We have pretty complex workflows and some catalog items use over 5 workflows. Updating each workflow would be a tedious task.

Upvoting for others to chime in.

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

Saurav11
Kilo Patron
Kilo Patron

Hello

 

Can you explain what the workflow has to do here If the requirement is what i understood that when ritm priority is changed task priorty should also chnage then BR should do the trick

 

Can you elaborate a little more about your concern about worflow Thanks

Hi Saurav,

 

I would have used the workflow to make the priority to be the same on RITM and the Task if it was for a single or less than 20 catalog items. But for 100 catalog items, where some workflows are interconnected.

 

The BR is not working with the conditions I put in.

 

Thanks,

Mallika