Close Task OOB UI Action on sc_task table

Alon Grod
Tera Expert

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 ?

4 REPLIES 4

Ankur Bawiskar
Tera Patron

@Alon Grod 

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! 🙏

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

fknell
Kilo Patron

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!

satyasubraV3614
Tera Contributor

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.

  1. Close Parent if Required — This Business Rule automatically closes the parent Request after the RITM is closed.

  2. Set Active Flag — This Business Rule sets the RITM state to closed depending on the stage.

Laveena-Agarwal
Kilo Sage

Hi @Alon Grod 

List of Business rules executes on closure of catalog task, here is the article - When catalog task closes what is the order of out-of-the-box bus.rules that execute on requested ite...