How to maintain the assignment group field on Task SLA table even the group changes

sath
Tera Expert

Hi,

 

When an Incident is created and assigned to assignment group A, response and resolution SLAs will be triggered based on the priority. When the assignment group A is changed to group B, existing response and resolution SLAs are getting cancelled and new ones are created for new group which is working as per the requirement.

But the assignment group field on all 4 SLAs are pointing out to assignment group B whereas the initial response and resolution SLAs should be referencing assignment group A. Looks like the assignment group value on SLAs are referenced to incident which shows the current assignment group value and it is not stored anywhere on SLAs for historical assignment group information.
How do we make sure the SLA assignment groups maintain the value that they have been triggered to? Do we need to implement a custom logic or is there any OOB option?

Screenshot 2025-09-29 at 8.31.28 AM.png

3 REPLIES 3

Ankur Bawiskar
Tera Patron
Tera Patron

@sath 

the Assignment Group field on list is not from task_sla

It comes from the Task->Assignment Group

AnkurBawiskar_1-1759153671645.png

 

Task SLA table doesn't have it's own Assignment Group field

AnkurBawiskar_0-1759153642382.png

So you need not worry on that part and the Assignment Group will always show the latest Group from that Task associated with task_sla.

Inform this to your customer and provide training to them and you need not do anything for this requirement.

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

Hi @Ankur Bawiskar 

 

Yes but they want to know which assignment group took how much time on their SLAs and that it is not right for assignment group A SLAs to be tagged to assignment group B after the group change.

@sath 

you can inform them about the OOTB platform behavior of that table.

If they don't agree then the only option is to use custom Assignment Group field on task_sla and populate it when task_sla record is inserted

You can use before Insert BR on task_sla and set that custom field

BR Condition: current.task.sys_class_name == 'incident'

Script:

current.u_assignment_group = current.task.assignment_group;

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader