Once sub task is closed then parent task state should change to work in progress
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-22-2024 05:54 AM - edited 02-22-2024 05:55 AM
Hi,
I'm looking into requirement. once the subtask is closed then parent task state should chnage to workinprogress.
Please help me to complete this task.
Parent: sn_si_incident
child: sn_si_task
Regards,
Sanju.
- Labels:
-
Incident Management
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-22-2024 05:58 AM - edited 02-22-2024 05:58 AM
Hi,
You can write a BR on the sub task table with condition -> state changes to closed.
if (current.state == 3) { // 3 is the closed value for sub task
var parentTask = subTask.parent.getRefRecord();
parentTask.state = 2; // 2 is the wip state value for parent
parentTask.update();
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-22-2024 06:50 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-22-2024 06:56 AM
Can you show a screenshot of your BR.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-22-2024 06:58 AM - edited 02-22-2024 07:04 AM
Try this, made a modification. @Talari Balateja Try this please
if (current.state == 3) { // 3 is the closed value for sub task
var parentTask = current.parent.getRefRecord();
parentTask.state = 2; // 2 is the wip state value for parent
parentTask.update();
}