NAME

RT::Action::OwnerAwayReassign

DESCRIPTION

Scrip action, meant to be paired with RT::Condition::OwnerAway. Reassigns the ticket's owner to Nobody and leaves an internal comment explaining that the previous owner is away. Runs the actual mutation as RT->SystemUser so it succeeds regardless of the replying user's rights, and uses Comment (not Correspond) so the note stays internal.

The comment is added only after SetOwner has succeeded, so by the time it creates its own transaction the ticket is owned by Nobody and RT::Condition::OwnerAway no longer matches. That ordering is what keeps the scrip from looping now that comments can trigger it too, so don't reorder these two steps.