uipath-tasks
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseUiPath Tasks (Action Center) — Agent Skill
UiPath Tasks (Action Center) — Agent Skill
Action Center is UiPath's human-in-the-loop platform. Tasks represent work items
that require human input — form approvals, document validation, data labeling, and more.
All operations go through .
uip tasks <verb> --output jsonAction Center是UiPath的人机协同平台。任务代表需要人工输入的工作项——例如表单审批、文档验证、数据标注等。
所有操作均通过执行。
uip tasks <verb> --output jsonLogin & Tenant Setup
登录与租户设置
Default to Production. Only switch environment/org/tenant when explicitly stated in the request.
- If the request mentions no environment → use the current session (defaults to prod )
cloud.uipath.com - If the request explicitly names an environment/org/tenant → check and re-login if needed
uip login status
When switching is required:
- Check current login: — verify
uip login status --output json,UIPATH_URL, andOrganizationTenant - Re-login with only if environment differs:
--authority- Alpha:
uip login --authority https://alpha.uipath.com --tenant <tenant> - Staging:
uip login --authority https://staging.uipath.com --tenant <tenant> - Production: (default, no
uip login --tenant <tenant>needed)--authority
- Alpha:
- If already on the right environment but wrong tenant:
uip login tenant set <tenant-name>
bash
undefined默认使用生产环境。仅当请求中明确说明时,才切换环境/组织/租户。
- 如果请求未提及环境→使用当前会话(默认是生产环境)
cloud.uipath.com - 如果请求明确指定环境/组织/租户→检查,必要时重新登录
uip login status
当需要切换时:
- 检查当前登录状态:——验证
uip login status --output json、UIPATH_URL和OrganizationTenant - 仅当环境不同时,使用重新登录:
--authority- Alpha环境:
uip login --authority https://alpha.uipath.com --tenant <tenant> - Staging环境:
uip login --authority https://staging.uipath.com --tenant <tenant> - 生产环境:(默认,无需
uip login --tenant <tenant>)--authority
- Alpha环境:
- 如果已在正确环境但租户错误:
uip login tenant set <tenant-name>
bash
undefinedCheck current environment, org, and tenant
检查当前环境、组织和租户
uip login status --output json
uip login status --output json
Login to a specific environment (production cloud is the default)
登录到特定环境(默认是生产云环境)
uip login --authority https://cloud.uipath.com --tenant MyTenant
uip login --authority https://cloud.uipath.com --tenant MyTenant
List all available tenants (after login)
列出所有可用租户(登录后)
uip login tenant list --output json
uip login tenant list --output json
Switch tenant within the same environment
在同一环境内切换租户
uip login tenant set MyTenant
> **Critical:** The `--tenant` flag on `tasks` commands does NOT switch the active session tenant.
> The environment is determined by `UIPATH_URL` in the auth file — always confirm with `login status` before running `tasks` commands.
---uip login tenant set MyTenant
> **重要提示:**`tasks`命令中的`--tenant`标志不会切换活动会话的租户。环境由认证文件中的`UIPATH_URL`决定——在运行`tasks`命令前,请务必用`login status`确认。
---When to Use
使用场景
- Listing or inspecting Action Center tasks across folders
- Assigning, reassigning, or unassigning tasks to users
- Completing tasks with action outcomes and data payloads
- Querying which users have task permissions in a folder
- Managing task catalogs (list, get, create, update) and their retention policy
- Reading and adding task comments
- Setting task labels
- Editing task metadata (title, priority, catalog association)
- Getting and saving task data
Not in scope: Orchestrator queues or queue items (use), Document Understanding model training, or Action Center app development (useuip or).uip codedapp
- 跨文件夹列出或查看Action Center任务
- 向用户分配、重新分配或取消分配任务
- 提交操作结果和数据负载以完成任务
- 查询哪些用户拥有文件夹中的任务权限
- 管理任务目录(列出、获取、创建、更新)及其保留策略
- 查看和添加任务评论
- 设置任务标签
- 编辑任务元数据(标题、优先级、目录关联)
- 获取和保存任务数据
**不在范围内:**Orchestrator队列或队列项(使用)、Document Understanding模型训练,或Action Center应用开发(使用uip or)。uip codedapp
Task Types
任务类型
| Type | CLI value | Description |
|---|---|---|
| Form task | | Form-based approval/action task |
| External task | | Generic external task |
| App task | | Action Center app-based task |
| Document validation | | Document Understanding validation |
| Document classification | | Document Understanding classification |
| Data labeling | | Data labeling task |
| 类型 | CLI 值 | 描述 |
|---|---|---|
| 表单任务 | | 基于表单的审批/操作任务 |
| 外部任务 | | 通用外部任务 |
| 应用任务 | | 基于Action Center应用的任务 |
| 文档验证 | | Document Understanding验证任务 |
| 文档分类 | | Document Understanding分类任务 |
| 数据标注 | | 数据标注任务 |
Task Statuses & Priorities
任务状态与优先级
| Status | Meaning |
|---|---|
| Created but not assigned to any user |
| Assigned, awaiting completion |
| Completed with an action/outcome |
| Priority | Level |
|---|---|
| Low |
| Medium (default) |
| High |
| Critical |
| 状态 | 含义 |
|---|---|
| 已创建但未分配给任何用户 |
| 已分配,等待完成 |
| 已完成并提交操作/结果 |
| 优先级 | 级别 |
|---|---|
| 低 |
| 中(默认) |
| 高 |
| 紧急 |
Quick Start
快速开始
bash
undefinedbash
undefinedCheck login and active tenant
检查登录状态和活动租户
uip login status --output json
uip login status --output json
Switch tenant if needed
必要时切换租户
uip login tenant set <tenant-name>
uip login tenant set <tenant-name>
List all tasks across folders
列出所有跨文件夹的任务
uip tasks list --output json
uip tasks list --output json
Get details of a specific task
获取特定任务的详细信息
uip tasks get <task-id> --output json
uip tasks get <task-id> --output json
Assign a task to a user
将任务分配给用户
uip tasks assign <task-id> --user alice@company.com --output json
uip tasks assign <task-id> --user alice@company.com --output json
Complete a task
完成任务
uip tasks complete <task-id> --type ExternalTask --folder-id <folder-id> --output json
---uip tasks complete <task-id> --type ExternalTask --folder-id <folder-id> --output json
---Critical Rules
关键规则
-
Always resolve org and tenant first. If the user specifies an org/environment and tenant, runto check the active tenant, then
uip login statusto switch if needed. Never assume the active tenant matches the user's intent.uip login tenant set <tenant> -
Task IDs are numeric. Unlike other UiPath services that use GUIDs, Action Center uses numeric task IDs. Useto discover task IDs.
tasks list -
Folder ID is required for complete. Tasks are scoped to folders. Usewhen completing tasks.
--folder-id -
Complete requires. The API routes to different endpoints per task type. Always include
--typewhen completing a task. Use--typeto check the task type first.tasks get -
FormTask and AppTask requireand
--actionfor completion. Other task types allow optional action and data.--data -
Assign acceptsor
--user-id(email). Use--userto discover assignable users and their IDs.tasks users <folder-id> -
Always discover before acting. Useor
tasks listto inspect task state before performing assign/complete operations.tasks get -
Do not complete already-completed tasks. Check the taskfield — if it is
status, inform the user.Completed -
Folder ID for catalogs/comments/labels/metadata/data. These commands are folder-scoped. Pass, or omit it on an interactive terminal to pick from a list. It is required in non-interactive runs (agents, CI) — always pass it explicitly there.
--folder-id -
Retention actions areor
Delete.Archivealso needsArchive.--retention-bucket-idis create-only and cannot be changed on update.--encrypted -
Labels replace the full set.overwrites all labels on the task — include every label to keep, and pass
tasks labels --labelsto clear them all.[] -
takes no type flag. The command resolves the task type itself; pass the task ID,
data save, and--folder-id(a JSON object).--data
-
**先确定组织和租户。**如果用户指定了组织/环境和租户,运行检查活动租户,必要时使用
uip login status切换。永远不要假设活动租户符合用户需求。uip login tenant set <tenant> -
**任务ID是数字。**与其他使用GUID的UiPath服务不同,Action Center使用数字任务ID。使用查找任务ID。
tasks list -
**完成任务需要文件夹ID。**任务是按文件夹划分范围的。完成任务时需使用。
--folder-id -
**完成任务需要。**API会根据任务类型路由到不同的端点。完成任务时务必包含
--type。可先使用--type检查任务类型。tasks get -
**FormTask和AppTask完成时需要和
--action。**其他任务类型允许可选的操作和数据。--data -
**分配任务接受或
--user-id(邮箱)。**使用--user查找可分配的用户及其ID。tasks users <folder-id> -
**操作前先查询。**执行分配/完成等操作前,使用或
tasks list检查任务状态。tasks get -
**不要完成已完成的任务。**检查任务的字段——如果是
status,告知用户。Completed -
**目录/评论/标签/元数据/数据操作需要文件夹ID。**这些命令是按文件夹划分范围的。传递,或者在交互式终端中省略以从列表中选择。在非交互式运行(Agent、CI)中是必填项——务必显式传递。
--folder-id -
保留操作是或
Delete。Archive还需要Archive。--retention-bucket-id仅在创建时可用,更新时无法修改。--encrypted -
标签会替换全部集合。会覆盖任务上的所有标签——需包含所有要保留的标签,传递
tasks labels --labels可清除所有标签。[] -
**不需要类型标志。**该命令会自行解析任务类型;只需传递任务ID、
data save和--folder-id(JSON对象)。--data
Task Navigation
任务操作导航
| Task | Commands to use |
|---|---|
| List all tasks | |
| List tasks in a folder | |
| List tasks as admin | |
| Get task details | |
| Get task with type hint | |
| Assign a task | |
| Assign by user ID | |
| Reassign a task | |
| Unassign a task | |
| Complete a task | |
| Complete with action | |
| List assignable users | |
| List task catalogs | |
| Get a catalog | |
| Create a catalog | |
| Update a catalog | |
| List task comments | |
| Add a comment | |
| Set task labels | |
| Edit task metadata | |
| Get task data | |
| Save task data | |
| 任务 | 使用的命令 |
|---|---|
| 列出所有任务 | |
| 列出文件夹中的任务 | |
| 以管理员身份列出任务 | |
| 获取任务详情 | |
| 获取带类型提示的任务 | |
| 分配任务 | |
| 通过用户ID分配任务 | |
| 重新分配任务 | |
| 取消分配任务 | |
| 完成任务 | |
| 带操作完成任务 | |
| 列出可分配用户 | |
| 列出任务目录 | |
| 获取目录 | |
| 创建目录 | |
| 更新目录 | |
| 列出任务评论 | |
| 添加评论 | |
| 设置任务标签 | |
| 编辑任务元数据 | |
| 获取任务数据 | |
| 保存任务数据 | |
Workflow: Discover → Plan → Act → Verify
工作流:查询→规划→执行→验证
Always follow this pattern:
- Discover — list tasks, get details, find assignable users
- Plan — determine the operation (assign, complete, etc.)
- Act — execute the operation
- Verify — re-read the task to confirm the state change
bash
undefined请始终遵循此流程:
- 查询 ——列出任务、获取详情、查找可分配用户
- 规划 ——确定要执行的操作(分配、完成等)
- 执行 ——执行操作
- 验证 ——重新查看任务以确认状态变更
bash
undefined0. Ensure correct tenant
0.确保租户正确
uip login status --output json
uip login tenant set <tenant-name> # only if needed
uip login status --output json
uip login tenant set <tenant-name> # 仅在需要时执行
1. Discover
1.查询
uip tasks list --output json
uip tasks get <task-id> --output json
uip tasks list --output json
uip tasks get <task-id> --output json
2. Plan — determine the task type, folder ID, and action needed
2.规划——确定任务类型、文件夹ID和所需操作
3. Act — assign a task
3.执行——分配任务
uip tasks assign <task-id> --user alice@company.com --output json
uip tasks assign <task-id> --user alice@company.com --output json
4. Verify
4.验证
uip tasks get <task-id> --output json
---uip tasks get <task-id> --output json
---Troubleshooting
故障排除
| Error | Cause | Fix |
|---|---|---|
| Auth expired | |
| Invalid token | Re-login |
| Permission denied | Ensure account has Action Center permissions in the folder |
| Neither | Add |
| Wrong task ID | Run |
| Completion fails | Wrong | Use |
| Completion fails for FormTask | Missing | FormTask and AppTask require both |
| Cannot assign | User lacks permissions in folder | Run |
| 错误 | 原因 | 修复方法 |
|---|---|---|
| 认证过期 | |
| 令牌无效 | 重新登录 |
| 权限不足 | 确保账户在该文件夹中拥有Action Center权限 |
| 未提供 | 添加 |
| 任务ID错误 | 运行 |
| 完成失败 | | 使用 |
| FormTask完成失败 | 缺少 | FormTask和AppTask需要同时提供 |
| 无法分配任务 | 用户在文件夹中无权限 | 运行 |
References
参考资料
For deeper guidance, read these files only when needed:
- — Listing and getting tasks, type-hint endpoint routing, and the full discover→assign→complete workflow
references/task-lifecycle.md - — Completion endpoint routing, required fields per task type
references/task-completion.md - — Assign, reassign, unassign patterns and user discovery
references/task-assignment.md - — Task catalog list/get/create/update and retention policy
references/task-catalogs.md - — Editing task metadata, plus task comments and labels
references/task-metadata.md - — Getting and saving task data, and save type routing
references/task-data.md - — Canonical Action Center URL patterns; read this before constructing or sharing any task deep-link (the portal-UI misclassifies tenant-less URLs as "Orchestrator not enabled")
references/action-center-urls.md
如需更深入的指导,仅在需要时阅读以下文件:
- ——任务的列出与获取、类型提示端点路由,以及完整的查询→分配→完成工作流
references/task-lifecycle.md - ——完成任务的端点路由、各任务类型的必填字段
references/task-completion.md - ——分配、重新分配、取消分配的模式及用户查询方法
references/task-assignment.md - ——任务目录的列出/获取/创建/更新及保留策略
references/task-catalogs.md - ——任务元数据编辑,以及任务评论和标签管理
references/task-metadata.md - ——任务数据的获取与保存,以及保存操作的类型路由
references/task-data.md - ——标准Action Center URL模式;在构建或分享任何任务深度链接前请阅读此文件(门户UI会将无租户的URL错误归类为"未启用Orchestrator")
references/action-center-urls.md