获取工作项的基本信息。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
授权信息
当前API暂无授权信息透出。
请求语法
GET /organization/{organizationId}/workitems/{workitemId}
请求参数
名称 | 类型 | 必填 | 描述 | 示例值 |
---|---|---|---|---|
organizationId | string | 是 | 企业标识,也称企业 id,字符串形式,可在云效访问链接中获取,如 https://devops.aliyun.com/organizatio | 5e706xxxxxx01xxx96 |
workitemId | string | 是 | 工作项 id,同 workitemIdentifier 字段,工作项唯一标识,可以在获取工作项列表的接口 ListWorkItems 中获取 | ce2xxxx21580baxxxx633f13 |
返回参数
示例
正常返回示例
JSON
格式
{
"requestId": "ASSDS-ASSASX-XSAXSA-XSAXSAXS",
"errorCode": "Openapi.RequestError",
"errorMessage": "error",
"success": true,
"workitem": {
"identifier": "e8bxxxxxxxxxxxxxxxx23",
"subject": "测试工作项",
"document": "html格式",
"documentFormat": "RICHTEXT",
"assignedTo": "19xx7043xxxxxxx914",
"status": "待处理",
"statusStageIdentifier": "1",
"spaceIdentifier": "e8b26xxxxx6e76aa20xxxxx23",
"spaceName": "需求项目",
"spaceType": "Project",
"logicalStatus": "NORMAL",
"categoryIdentifier": "Req",
"parentIdentifier": "e8bxxxxxxxxxxxxxxxx24",
"workitemTypeIdentifier": "9uxxxxxxre573f5xxxxxx0",
"updateStatusAt": 1640850328000,
"serialNumber": "ABCD-1",
"gmtCreate": 1640850318000,
"gmtModified": 1640850318000,
"creator": "19xx7043xxxxxxx914",
"modifier": "19xx7043xxxxxxx914",
"statusIdentifier": "例:100005",
"sprint": [
"81be626abf9b63e291bd......"
],
"tag": [
"c76e0e4bf64801cfad73......"
],
"participant": [
"1561159309......"
],
"tracker": [
"1561159309......"
],
"verifier": [
"1561159309......"
],
"customFields": [
{
"fieldIdentifier": "例:80",
"fieldFormat": "例:input",
"fieldClassName": "例如:date",
"objectValue": "null",
"value": "例:2022-01-06 00:00:00",
"workitemIdentifier": "5daa9a15c7fd55523996......",
"position": 1,
"level": 1,
"valueList": [
{
"value": "2022-02-01 00:00:00",
"valueEn": "null",
"displayValue": "2022-02-01 00:00:00",
"identifier": "2022-02-01 00:00:00",
"level": 1
}
]
}
],
"finishTime": 1699366778000,
"tagDetails": [
{
"identifier": "8d859b4fce9d86bc324a9cf00c",
"name": "paymentcenter",
"color": "#1F9AEF"
}
]
}
}
错误码
HTTP status code | 错误码 | 错误信息 | 描述 |
---|---|---|---|
400 | Openapi.RequestError | request error | OpenAPI请求数据错误 |
403 | Operate.NoPermission | NoPermission | 没有权限 |
访问错误中心查看更多错误码。
变更历史
变更时间 | 变更内容概要 | 操作 |
---|---|---|
2024-04-19 | OpenAPI 错误码发生变更、OpenAPI 返回结构发生变更 | 查看变更详情 |
2024-02-28 | OpenAPI 错误码发生变更、OpenAPI 返回结构发生变更 | 查看变更详情 |
2023-11-07 | OpenAPI 错误码发生变更、OpenAPI 返回结构发生变更 | 查看变更详情 |