Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

catalog tasks

RIKKAL
Tera Contributor

When all catalog tasks have been closed, RITM should get closed automatically. can anyone help me how to do it 

2 ACCEPTED SOLUTIONS

Dr Atul G- LNG
Tera Patron
Tera Patron

Hi @RIKKAL 

 

It is OOTB, you need to set the stage and state. Please pick any of these

 

AGLearnNGrow_0-1733322671699.png

 

*************************************************************************************************************
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.

Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]

****************************************************************************************************************

View solution in original post

Robbie
Kilo Patron
Kilo Patron

Hi @RIKKAL,

 

ServiceNow provides an Out Of Box (OOB) Business Rule that takes care of this - Business Rule name: 'Close Parent if Required' (For the sc_task table).

Can you confirm what state(s) is/are selected when the catalog tasks are closed?

As long as the value is equal to one of the underlying values as shown below, the Parent RITM should close.

 

current.stage.changes() && (current.stage=='complete' || current.stage=='Request Cancelled' || current.stage == "closed_incomplete" || current.stage=="closed_skipped")

 

Have you implemented any new states or are any of the child tasks not set to one of these values? Can you also confirm the Business Rule: 'Close Parent if Required' (For the sc_task table) is Active.

 

To help others (and for me to gain recognition for my efforts), please mark this response correct by clicking on Accept as Solution and/or Kudos.





Thanks, Robbie

View solution in original post

2 REPLIES 2

Dr Atul G- LNG
Tera Patron
Tera Patron

Hi @RIKKAL 

 

It is OOTB, you need to set the stage and state. Please pick any of these

 

AGLearnNGrow_0-1733322671699.png

 

*************************************************************************************************************
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.

Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]

****************************************************************************************************************

Robbie
Kilo Patron
Kilo Patron

Hi @RIKKAL,

 

ServiceNow provides an Out Of Box (OOB) Business Rule that takes care of this - Business Rule name: 'Close Parent if Required' (For the sc_task table).

Can you confirm what state(s) is/are selected when the catalog tasks are closed?

As long as the value is equal to one of the underlying values as shown below, the Parent RITM should close.

 

current.stage.changes() && (current.stage=='complete' || current.stage=='Request Cancelled' || current.stage == "closed_incomplete" || current.stage=="closed_skipped")

 

Have you implemented any new states or are any of the child tasks not set to one of these values? Can you also confirm the Business Rule: 'Close Parent if Required' (For the sc_task table) is Active.

 

To help others (and for me to gain recognition for my efforts), please mark this response correct by clicking on Accept as Solution and/or Kudos.





Thanks, Robbie