Request assigned to specific group to remain open when underlying tasks are closed
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
yesterday
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
- Labels:
-
Service Catalog
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
yesterday
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).
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.
Kind Regards,
Mohamed Azarudeen Z
Developer @ KPMG
Microsoft MVP (AI Services), India