Delegation conditions are fail-closed. If the script returns an empty list, or never calls
actions.delegate, no delegate is eligible and the request stays with its original reviewer.Write a delegation-condition script
Read the request withcontext.get_request(), decide who may cover it, and declare the eligible delegates with actions.delegate(...).
context module
Returns the request being evaluated, withrequester_id, target_user_id, requested_resources, and the other request fields. It is the same object documented for request review.
actions module
Declares the delegates eligible to cover the request. This call is terminal: the script ends when it runs.list[string]
required
The user IDs of the eligible delegates. Pass an empty list to make no delegate eligible.
entity and access, are available too, so you can look up users, groups, and tags to make the decision.