HR Child Cases being Set to Cancelled

kevinthury
Tera Guru

When closing an HR Case, all Child cases are being set to Cancelled.  Can someone direct me to what is setting the State of the Child cases as we would rather have them follow the identical state of the parent.

 

 

1 ACCEPTED SOLUTION

hollysnyder
Mega Guru

Hi Kevin!

The Cancel or Close Case Cleanup Business Rule runs when the state of an HR Case changes to Closed Complete, Closes Incomplete, or Cancelled. In there, it calls the cleanupChildRecordsForCase method in the hr_utils script include. That method contains the script that sets child cases as cancelled when a parent case is closed.

I hope this helps!

Holly

View solution in original post

9 REPLIES 9

Awesome!

Glad you were able to get the right answers and get it working as you needed.

Cheers!

-Rob

Hi Kevin

We have a similar issue which has come up as well. Can you please share (if possible) the Business rule which you created with a higher order for this issue to get resolved?

Here is a couple of screenshots of the Business Rule that worked for me.  This example is running for a specific HR Service.  Of course, you can set conditions based on your needs.  (There is no screenshot of the 'Actions' tab as there is nothing there.)

find_real_file.png

 

find_real_file.png

 

 

 

Thanks a tonne! 🙂

Saurabh8
Kilo Expert

Hi All

Can someone please guide me on this one? I checked the service now document and figured out that it's an OOB feature

 

https://docs.servicenow.com/bundle/orlando-hr-service-delivery/page/product/human-resources/task/t_CreateAnHRCase.html  :::

 

Child Cases

Lists child cases associated with this case. Click New to create a child case under the case you are working on.

Note: When you close the parent case, all child cases are cancelled.