def customise_finding(event: ExecutionBaseEvent, params: FindingOverrides):
    """
    Modify an existing notification message generated by a previous playbook action.
    This lets you modify messages created by other actions without needing to rewrite those actions.

    This action does not create a new Finding, it just overrides the attributes of an existing Finding.
    It must be placed as the last action in the playbook configuration, to override the attributes created by previous
    actions
    """
    severity: Optional[FindingSeverity] = FindingSeverity[params.severity] if params.severity else None
    subject = event.get_subject()
    title = format_event_templated_string(subject, params.title) if params.title else None
    description = format_event_templated_string(subject, params.description) if params.description else None

    aggregation_key = format_event_templated_string(subject, params.aggregation_key) if params.aggregation_key else None

    event.override_finding_attributes(title, description, severity, aggregation_key)

    Modify an existing notification message generated by a previous playbook action.
    This lets you modify messages created by other actions without needing to rewrite those actions.

    This action does not create a new Finding, it just overrides the attributes of an existing Finding.
    It must be placed as the last action in the playbook configuration, to override the attributes created by previous
    actions
    
playbooks/robusta_playbooks/common_actions.py