workitem
工作项数据。
签名
函数签名:
javascript
export interface WorkItem {
id: string;
short_id: string;
identifier: string;
title: string;
type_group: WorkItemTypeGroup;
type_id: string;
}
export enum WorkItemTypeGroup {
requirement = 1,
task = 2,
bug = 3,
issue = 4,
plan = 5
}示例
示例数据:
javascript
{
"id": "5edca524cad2fa112b06305c",
"short_id": "Ogf1EYey",
"identifier": "SCR-1",
"title": "这是一个史诗",
"type_group": 1,
"type_id": "5a86eaf6a72585327ea46fge0",
}属性
属性解释:
| 属性 | 描述 |
|---|---|
id | 工作项 ID |
short_id | 工作项短 ID |
identifier | 工作项唯一标识 |
title | 工作项名称 |
type_group | 工作项类型分组,取值为 WorkItemTypeGroup |
type_id | 工作项类型 ID |