create_work_item
Create work items to organize tasks in Alibaba Cloud DevOps projects. Define subject, type, assignee, and custom fields for tracking.
Instructions
[Project Management] Create a work item. 描述字段使用提示:
description 支持 Markdown / 富文本,需配合 formatType("MARKDOWN" 或 "RICHTEXT")。
描述中插入图片三步法:① 先建工作项(本工具, description 可先为空或占位);② 调 create_workitem_attachment 上传图片拿到返回值中的 embedMarkdown 或 embedHtml;③ 调 update_work_item 把拼好的 description 写回。✅ 报错点:不要使用 create_workitem_attachment 返回的 url 字段,那是 30 秒过期的 OSS 临时签名。
实际工时(fieldId 101587)与预计工时(fieldId 101586)为云效受控系统字段,不能通过本工具的 customFieldValues 修改;请改用
create_effort_record/create_estimated_effort。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| organizationId | Yes | Organization ID | |
| spaceId | Yes | Space ID, project unique identifier | |
| subject | Yes | Work item title | |
| workitemTypeId | Yes | Work item type ID | |
| assignedTo | Yes | Assignee user ID | |
| customFieldValues | No | Custom field values | |
| description | No | Work item description | |
| formatType | No | Description format type. RICHTEXT (rich text, default) or MARKDOWN (markdown format). Use MARKDOWN when description contains markdown syntax | |
| labels | No | Associated label IDs | |
| parentId | No | Parent work item ID | |
| participants | No | Participant user IDs | |
| sprint | No | Associated sprint ID | |
| trackers | No | CC user IDs | |
| verifier | No | Verifier user ID | |
| versions | No | Associated version IDs |