Request assigned to specific group to remain open when underlying tasks are closed

devarshiman
Kilo Contributor

Hi, 

There are different threads which have highlighted the feature to close a request when all the underlying tasks under Request Item are closed. 

 

I want to have a business rule, where if the Request is assigned to a particular set of groups (say Group 1 to 5), and all the tasks related to those request are closed, then the request should not close. However, if the request is assigned to other groups (outside of Group 1 to 5), closing the tasks should close the Request.

 

Any support in this regard would be helpful.

 

Thanks

1 REPLY 1

Its_Azar
Tera Guru

hi @devarshiman 

 

have a  Business Rule on sc_request (before/after update when checking RITM/task closure).

Add logic: if assigned_to is in Group 1–5 → skip auto-close.

Else (other groups) → allow normal behavior (close when all tasks closed).

 

so here 
 
if (current.assignment_group && restrictedGroups.indexOf(current.assignment_group) > -1) {
   // do nothing, keep request open
} else {
   // normal auto-close logic
}

That way requests for Groups 1–5 won’t auto-close when tasks finish.

hope this helps.

 

☑️ If this helped, please mark it as Helpful or Accept Solution so others can find the answer too.




Kind Regards,

Mohamed Azarudeen Z

Developer @ KPMG

 Microsoft MVP (AI Services), India