Loading skill
Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Searches, approves, rejects and tracks Feishu approval tasks, instances and definitions, and initiates native approval instances.
Use this skill ↓1 of 22 test cases passed with the skill.
3 of 3 safety checks passed
Not used yet
转交一个审批任务给其他用户处理(用户级写操作)。通常先通过 tasks query 拿到 task_id 和 instance_code,确认目标任务后,再提供被转交人的用户 ID 执行转交。
[!CAUTION] 这是 high-risk-write 写操作。建议先用
--dry-run预览;真正执行时,如果用户已明确要转交该审批且目标任务、转交对象都无误,再带--yes运行。不要在未获用户明确同意时静默追加--yes。
需要的 scopes: ["approval:task:write"]
# 先预览请求,不实际执行
lark-cli approval tasks transfer \
--data '{"instance_code":"<INSTANCE_CODE>","task_id":"<TASK_ID>","transfer_user_id":"ou_xxx","comment":"请你继续处理"}' \
--params '{"user_id_type":"open_id"}' \
--as user \
--dry-run
# 按 open_id 转交审批任务
lark-cli approval tasks transfer \
--data '{"instance_code":"<INSTANCE_CODE>","task_id":"<TASK_ID>","transfer_user_id":"ou_xxx","comment":"转交给你处理"}' \
--params '{"user_id_type":"open_id"}' \
--as user \
--yes
# 按 user_id 转交审批任务
lark-cli approval tasks transfer \
--data '{"instance_code":"<INSTANCE_CODE>","task_id":"<TASK_ID>","transfer_user_id":"123456789","comment":"请补充审核"}' \
--params '{"user_id_type":"user_id"}' \
--as user \
--yes
# 通过文件传入请求体,适合较长 comment
lark-cli approval tasks transfer \
--data @./transfer-body.json \
--params '{"user_id_type":"open_id"}' \
--as user \
--yes
Next to this one in the catalogue, plus more from the same author.