how auto populate assignment group on change task as same as change request ??

Siddhesh Gawade
Mega Sage
Mega Sage

I have requirment  to  auto populate assignment group on change task as same as change request. 

 

(function executeRule(current, previous /*null when async*/ ) {

 

var changetask = new GlideRecord('change_task');

changetask.assignment_group = current.assignment_group;

 

})(current, previous);

 

but this is not workling please help.

 

regards,

Siddhesh.

1 ACCEPTED SOLUTION

Vaishnavi Lathk
Mega Sage
Mega Sage

Hello Siddhesh,

 

Solutions :-->

1) Create a dictionary override for the assignment group field on change task table and use the following script in the default value column

javascript:parent.assignment_group;

 

2)Code Snippet

task.assignment_group = current.assignment_group;

 

Regards,

Vaishnavi

 

View solution in original post

5 REPLIES 5

ishwar09
Tera Contributor

Hi Siddhesh,

 

Go to workflow 'Change Request - Normal change tasks' (checkout) > Create Task node > Add this code under Advanced Script section 'task.assignment_group = current.assignment_group;'

 

It worked for me.

Please mark this if helpful.

 

Thanks