how to Cancel all SC Tasks in RITM when state changes to Close Incomplete using Business Rule

dhanashree2011
Tera Contributor

Hi all,

 

How to Cancel all SC Tasks in RITM when RITM state changes to Close Incomplete using Business Rule. 

The requirement is to close all SC Task under Closed Incomplete RITM's.

1 ACCEPTED SOLUTION

That is the OOB behaviour, to avoid this you can simply take one group's sys_id of servicedesk or some generic group and  write "tasks.assignment_group = <sys_id of assignment group>;

Please mark helpful/correct if my response helped you.

View solution in original post

8 REPLIES 8

Hi @dhanashree2011 

tasks.addQuery('request_item', current.sys_id); //It is request_item. try and let us know

Please mark helpful/correct if my response helped you.

 

Above Code Works but i am getting below Error

 

dhanashree2011_0-1710412684288.png

 

 

That is the OOB behaviour, to avoid this you can simply take one group's sys_id of servicedesk or some generic group and  write "tasks.assignment_group = <sys_id of assignment group>;

Please mark helpful/correct if my response helped you.

Thanks a lot Anubhav