获取工作项详细信息
GET/project/issues/:issueID
获取工作项详细信息
History
Version | Changes |
---|---|
v3.14.117, v3.15.26 | Added in: v3.14.117, v3.15.26 |
v6.30.0, v6.18.14 | 在Responses的Schema中增加描述等字段,并修改部分旧字段 修改部分: 将原有assignee中name的描述改为工作项负责人名称 将原有parent中title改为name 将原有subIssues中title改为name 新增部分: solution, publishProgress, publishDate, serverUpdateStamp, timeProgress, estimateStoryPoint, publishVersion, watchers, planStartDate, planEndDate, solver, descriptionText, description, defectType, isOnlineDefect, products, productModules, projectModules, epic, severityLevel, estimateVariance, totalTimeProgress, totalEstimateVariance, progress |
Request
Path Parameters
工作项ID
Query Parameters
团队ID
Responses
- 200
- 401
- 403
- 404
- 500
请求成功
- application/json
- Schema
- Example (from schema)
Schema
Array [
]
Array [
- 1: 单选
- 2: 文本
- 3: 整数
- 4: 浮点数
- 5: 日期
- 6: 时间
- 16: 多选
- 19: 布尔值
- MOD1
- MOD2
- MOD3
- MOD4
Array [
]
]
Array [
]
Array [
]
Array [
]
Array [
]
Array [
]
Array [
]
assignee
object
工作项负责人ID
工作项负责人名称
工作项创建时间
工作项截止日期
工作项预估工时,单位(小时)
issueType
object
工作项类型ID
工作项类型名称
工作项标题
工作项编号
creator
object
工作项创建者ID
工作项创建者名称
parent
object
父工 作项ID
父工作项标题
priority
object
工作项优先级ID
工作项优先级名称
project
object
工作项所属项目ID
工作项所属项目名称
工作项剩余工时,单位(小时)
sprint
object
工作项所属迭代ID
工作项所属迭代名称
status
object
工作项状态ID
工作项状态名称
工作项状态类型
subIssueType
object
子工作项类型ID
子工作项类型名称
子工作项总数
子工作项状态为完成的总数
subIssues
object[]
子工作项ID
子工作项标题
工作项总预估工时,单位(小时)
工作项已登记工时,单位(小时)
工作项总剩余工时,单位(小时)
工作项ID
fieldValues
object[]
仅包含被加入到详情表单中的自定义属性与部分系统属性
属性唯一标识
属性类型(以下为常见类型示例):
value
object
属性值。根据属性类型的不同,返回相应的数据格式。由于类型可扩展,具体格式需要参考返回数据
oneOf
string
integer
boolean
attachments
object[]
工作项附件ID
工作项附件名称
工作项附件创建时间
solution
object
处理结果ID
处理结果名称
发布进度
发布日期
更新时间
工时进度
故事点
publishVersion
object[]
关联发布ID
关联发布名称
watchers
object[]
关注者ID
关注者名称
计划开始日期
计划完成日期
solver
object
解决者ID
解决者名称
描述
描述(富文本)
defectType
object
缺陷类型ID
缺陷类型名称
isOnlineDefect
object
是否线上缺陷ID
是否线上缺陷名称
products
object[]
所属产品ID
所属产品名称
productModules
object[]
所属功能模块ID
所属功能模块名称
projectModules
object[]
所属模块ID
所属模块名称
epic
object
所属史诗ID
所属史诗名称
severityLevel
object
严重程度ID
严重程度名称
预估偏差
总工时进度
总预估偏差
进度
{
"assignee": {
"id": "string",
"name": "string"
},
"createTime": 0,
"dueDate": "string",
"timeEstimatedHour": 0,
"issueType": {
"id": "string",
"name": "string"
},
"title": "string",
"number": 0,
"creator": {
"id": "string",
"name": "string"
},
"parent": {
"id": "string",
"name": "string"
},
"priority": {
"id": "string",
"name": "string"
},
"project": {
"id": "string",
"name": "string"
},
"timeRemainingHour": 0,
"sprint": {
"id": "string",
"name": "string"
},
"status": {
"id": "string",
"name": "string",
"category": "string"
},
"subIssueType": {
"id": "string",
"name": "string"
},
"subIssueCount": 0,
"subIssueDoneCount": 0,
"subIssues": [
{
"id": "string",
"name": "string"
}
],
"totalTimeEstimatedHour": 0,
"timeSpentHour": 0,
"totalTimeRemainingHour": 0,
"id": "string",
"fieldValues": [
{
"fieldID": "string",
"type": 0,
"value": "string"
}
],
"attachments": [
{
"id": "string",
"name": "string",
"createTime": 0
}
],
"solution": {
"id": "string",
"value": "string"
},
"publishProgress": 0,
"publishDate": "string",
"serverUpdateStamp": 0,
"timeProgress": 0,
"estimateStoryPoint": 0,
"publishVersion": [
{
"id": "string",
"name": "string"
}
],
"watchers": [
{
"id": "string",
"name": "string"
}
],
"planStartDate": "string",
"planEndDate": "string",
"solver": {
"id": "string",
"name": "string"
},
"descriptionText": "string",
"description": "string",
"defectType": {
"id": "string",
"value": "string"
},
"isOnlineDefect": {
"id": "string",
"value": "string"
},
"products": [
{
"id": "string",
"name": "string"
}
],
"productModules": [
{
"id": "string",
"name": "string"
}
],
"projectModules": [
{
"id": "string",
"name": "string"
}
],
"epic": {
"id": "string",
"name": "string"
},
"severityLevel": {
"id": "string",
"value": "string"
},
"estimateVariance": 0,
"totalTimeProgress": 0,
"totalEstimateVariance": 0,
"progress": 0
}
如果身份验证凭据不正确或丢失,则返回
- application/json
- Schema
- Example (from schema)
Schema
本次请求结果,SUCCESS|FAIL
本次请求错误码
本次请求错误信息
{
"result": "FAIL",
"errorCode": "Unauthorized",
"errorMsg": "Access token is invalid"
}
如果scope检验不通过,则返回
- application/json
- Schema
- Example (from schema)
Schema
本次请求结果,SUCCESS|FAIL
本次请求错误码
本次请求错误信息
{
"result": "FAIL",
"errorCode": "Forbidden",
"errorMsg": "Scope is invalid"
}
如果未找到资源对象,则返回
- application/json
- Schema
- Example (from schema)
Schema
本次请求结果,SUCCESS|FAIL
本次请求错误码
本次请求错误信息
{
"result": "FAIL",
"errorCode": "NotFound",
"errorMsg": "Not Found"
}
内部服务器错误
- application/json
- Schema
- Example (from schema)
Schema
本次请求结果,SUCCESS|FAIL
本次请求错误码
本次请求错误信息
{
"result": "FAIL",
"errorCode": "Internal Server Error",
"errorMsg": "Internal Server Error"
}