Best way to rename assignment groups
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-05-2022 01:50 AM
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
- Labels:
-
Incident Management

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-05-2022 02:08 AM
Hi
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-05-2022 02:36 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-05-2022 02:39 AM
It's also worth mentioning that the current tasks will need to be moved from one assignment group to 3 new ones
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-29-2025 05:27 AM
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.