Creating child task when parent task is completed.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-08-2022 12:17 AM
Once status of the Parent Task is done then one child task should get created. When status of child task is done then another child task should get created and it will go on and 6 different child tasks will be created and completed.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-08-2022 12:21 AM
You can create a workflow, which runs when parent task is closed.
In that you can put 6 create tasks activity in sequential manner to achieve your goal
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-08-2022 12:24 AM
hello
are you using a workflow for this and task is nothing but a catalog task you are talking about ?
if yes you can check within catalog task activity whether the task is getting closed or not using "wait for completion check box" so this will satisfy only when the task goes to closed complete state and you can connect this task to another catalog task activity so that only if the parent task is completed it will move forward and start creating the next task which is connected to it.
Hope this helps
please mark my answer correct if this helps you
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-08-2022 12:39 AM
This isn't about a catalog task, its for a problem task, when one parent task is completed a child task is created and it goes on.
Is there any way to complete it using BR or Scripting?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-08-2022 12:43 AM
YES
you can do it through an after update BR on problem task table where your condition can be like state changes to closed complete .
var gr = new GlideRecord('problem_task');
gr.addQuery('problem',current.problem);
gr.query();
if(gr.getRowCount()<6)
{
var prb = new GlideRecord('problem_task');
prb.initialize();
prb.short_description="your_short_description";
prb.insert();
}
Hope this helps