Need to close all task

nikhitha24
Tera Guru

Can anyone please help me on the below query.

When all task are closed in a HR case, The case should closed automatically.

1 ACCEPTED SOLUTION

@nikhitha24 I would say instead of writing script, create flow designer on HR task table. 

I have created below flow and its working

 

I have attached xml of the flow here. You can load it in your instance and use it

 

SANDEEP28_0-1691576677904.png

If I could help you with your Query then, please hit the Thumb Icon and mark as Correct !!

View solution in original post

8 REPLIES 8

SANDEEP28
Mega Sage

@nikhitha24 OOB configuration available on HR Service to close case automatically.  There is a checkbox called as "Automatically close case" on HR service configuration record. This checkbox is visible when "Fulfillment type" is Service Activity or Lifecycle event.

 

When you check this checkbox then it will show one more field called as "Close when". It will have two options 

1) All to-dos are complete

2) Mandatory to-dos are complete

 

If you select "All to-dos are complete" then HR case will get closed when all tasks gets closed. 

 

SANDEEP28_0-1691407285603.png

 

If I could help you with your Query then, please hit the Thumb Icon and mark as Correct !!

Hi @SANDEEP28 

 

Thank for the help

 

I have checked this OOB configuration for Lifecycle event service but i have one query

I have closed all task  in a HR case, my HR case is ready state still HR case is closed complete or is there any particular state then only HR case will close complete. 

Please help me on this 

SANDEEP28
Mega Sage

@nikhitha24 If I could help you with your Query then, please hit the Thumb Icon and mark as Correct !!

SANDEEP28
Mega Sage

@nikhitha24 If I could help you with your Query then, please hit the Thumb Icon and mark as Correct !!