Creating child task when parent task is completed.

Bharat Singhi
Tera Contributor

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.

4 REPLIES 4

suvro
Mega Sage
Mega Sage

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

Mohith Devatte
Tera Sage
Tera Sage

hello @Bharat Singhi ,

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 

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?

YES @Bharat Singhi ,

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