---
url: /reference/resource/context/workitem.md
---

# 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",
}
```

## 属性

属性解释：
