handlers.copy_relations_handler
Copies a relation from one relation field to another on the same fact sheet whenever a new relation is created.
Example: Copy the relation category into the field architectureFsCategory:
{
"source": "relApplicationToOwnerUserGroup",
"target": "relApplicationToCyberSecurityOwnershipUnit",
"only_copy_if_target_is_empty": True
}
description =
'Copies a relation from one relation field to another on the same fact sheet whenever a new relation is created.'
config_template =
{'source': 'relApplicationToOwnerUserGroup', 'target': 'relApplicationToCyberSecurityOwnershipUnit', 'only_copy_if_target_is_empty': True}