Get a first look at what's coming. The Developer Passport Australia Release Preview kicks off March 12. Dive in! 

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 ?

5 REPLIES 5

Mohith A
Tera Expert
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.
Anabathula Mohith

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  ||  10x ServiceNow MVP  ||  ServiceNow Community Leader

fknell
Giga 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 Expert

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.