- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-16-2019 06:39 AM
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.
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-16-2019 11:18 AM
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

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-19-2019 06:02 AM
Awesome!
Glad you were able to get the right answers and get it working as you needed.
Cheers!
-Rob
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-05-2020 07:01 AM
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?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-06-2020 04:34 AM
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.)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-06-2020 05:11 AM
Thanks a tonne! 🙂
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-06-2020 04:03 AM
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.