HR Case is not getting closed automatically

Ram33843094
Tera Contributor

HR LE Case is not getting automatically closed even all the respective HR tasks are complete.

Have configured the same in HR service too, still its not working(screenshot below). Can someone pls provide any script/how to do configuration here?

 

Ram33843094_1-1683540149029.png

 

@Ankur Bawiskar @Sandeep Rajput @Community Alums 

5 REPLIES 5

I do not have it handy with me but you can simply create onAfter updateBR on HR Task table and do a GlideRecord on the Task table with a filter of parent = current.parent. 

 

This will give you a list of all the HR Tasks, request and RITMs where parent is HR Case. You can check the state of each of these task and choose to decide if the case can be closed.