1

To handle our data migration, we need a utility script that creates a new field in the target table to capture a backup of user and group reference fields.

Input attributes: Tables in scope (example: ['core_company', 'ticket'])

Expected behavior:

The script should create a backup field (name = u_backup, type = Name-Value Pairs).

The script should populate the field with values of user and group references.

For example, on an incident:

If there are assigned_to and assignment_group fields:

Expected result: {{

{'assigned_to': 'abel Tuter", 'assignment_group': 'IT- developers'}

}}

Backup Field Automation
Utkarsha wagh Asked question May 23, 2024