When parent case state is closed incomplete child task state needs to closed incomplete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-04-2023 03:16 AM
Hi All,
Can anyone please help me on the below query,
When parent (Life cycle event case) case state is closed incomplete child task state needs to closed incomplete.
Please suggests me how to do the changes for this,
Is there aby OOB configurations available.
Thank you,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-04-2023 03:44 AM
Hello @nikhitha24 ,
Can you please check if there is any business rule configured on the Parent table check if there are any child task and they are updating or not you can achieve this requirement via Creating the business rule on the Parent table and add condition when the state is closed incomplete.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-04-2023 03:53 AM
@nikhitha24 Unfortunately, there is no OOB configuration for this. However, you can choose to create an onBefore update business rule on sn_hr_le_case as follows.
Here is the script for you.
(function executeRule(current, previous /*null when async*/) {
// Add your code here
var glideHRTask = new GlideRecord('sn_hr_core_task');
glideHRTask.addQuery('parent',current.getValue('sys_id'));
glideHRTask.query();
while(glideHRTask.next()){
glideHRTask.setValue('state','4'); //4 is closed incomplete
glideHRTask.update();
}
})(current, previous);
Hope this helps.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-04-2023 06:40 AM
HI @nikhitha24 ,
I trust you are doing great.
Please refer the below video for the same
Was this answer helpful?
Please consider marking it correct or helpful.
Your feedback helps us improve!
Thank you!
Regards,
Amit Gujrathi