Best way to rename assignment groups

Alex Saager1
Tera Contributor

Hello,

With my organisation recently having a re-design, one of our teams have now been split into 3 and I wanted to know the best way to move active tasks to the new teams, we have about 90 tasks with the current team including incidents, requests, changes, catalog tasks etc.

Is it as simple as creating the new groups and them re-assigning the current active tasks?

Many thanks 

Alex

5 REPLIES 5

SumanthDosapati
Mega Sage
Mega Sage

Hi @Alex Saager 

You can write a background script or fix script to change assignment group for all tasks at once.

 

var gr = new GlideRecord('task');
gr.addEncodedQuery("query");//Put the query of list of all records you need to modify
gr.query();
while(gr.next())
{
gr.assignment_group = "new group sys_id";
gr.update();
}

 

mark as correct or helpful as applicable.

Regards,

Sumanth

Hi Sumanth,

Thanks for this, so in regards to the script, would I need to add the sys id's of the tasks between the lines: 

gr.addEncodedQuery("query");
gr.query();

Thanks,

Alex

It's also worth mentioning that the current tasks will need to be moved from one assignment group to 3 new ones

deepanbhatt
Tera Contributor

 want to rename Assignment Group Name. Let me know what are things I should take care before and after that.

I just want to rename assignment group name.