Close Task OOB UI Action on sc_task table
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
4 hours ago
Hi,
We have OOB UI Action 'Close Task' on sc_task table. If there is only one sc_task inside the sc_req_item record, then when we click on 'Close Task' it close the current sc_task and also close the sc_req_item record and the sc_request record.
How the sc_req_item record and the sc_request item record are being closed as well? from what i see the UI Action only takes care of the current sc_task record. Is there any Business rule or Flow ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 hours ago
The UI Action only closes the Catalog Task, but this triggers a chain reaction in the background. Once that task is closed, the Workflow or Flow Designer sees that the task is finished and moves to its next step, which typically updates the Requested Item (RITM) to a closed state. Finally, an out-of-the-box Business Rule on the RITM table detects that the RITM is now closed; it checks if there are any other open items under the same Request (REQ), and since there are none, it automatically closes the Request as well.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 hours ago
there must be some BR or flow running on sc_task which closes the RITM and REQ
did you check that?
💡 If my response helped, please mark it as correct ✅ and close the thread 🔒— this helps future readers find the solution faster! 🙏
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 hours ago - last edited 3 hours ago
Hi @Alon Grod,
if it's the last or the only sc_task associated with the sc_req_item it will close the parent as well.
The business rules, that are responsible are called: 'SNC - Run parent workflows' and 'Close Parent if Required'
Hope this helps!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 hours ago
Hello @Alon Grod
A Flow is configured on the Catalog Item in a way that, once the associated task is completed, stage is set to Completed. This action triggers the closure of the corresponding RITM. When the RITM is closed, the parent Request record is also closed. These are 2 business rules responsible for this.
Close Parent if Required — This Business Rule automatically closes the parent Request after the RITM is closed.
Set Active Flag — This Business Rule sets the RITM state to closed depending on the stage.
