更新工作项
PUT/project/issues/:issueID
更新工作项
History
Version | Changes |
---|---|
v3.14.117, v3.15.26 | Added in: v3.14.117, v3.15.26 |
Request
Path Parameters
issueID stringrequired
工作项ID
Query Parameters
teamID stringrequired
团队ID
- application/json
Body
required
要更新的工作项信息
Array [
- 1: 单选
- 2: 文本
- 3: 整数
- 4: 浮点数
- 5: 日期
- 6: 时间
- 8: 用户
- 13: 用户列表
- 14: 数字
- 16: 多选
- 19: 布尔值
- MOD1
- MOD2
- MOD3
- MOD4
Array [
]
]
assignee string
Possible values: non-empty
and <= 8 characters
工作项负责人
title string
Possible values: non-empty
and <= 1024 characters
工作项负责人
fieldValues
object[]
工作项属性信息
fieldID stringrequired
Possible values: >= 8 characters
属性ID
type integerrequired
属性类型(以下为常见类型示例):
value
object
required
属性值。根据属性类型的不同,返回相应的数据格式。由于类型可扩展,具体格式需要参考返回数据
oneOf
string
integer
boolean
Responses
- 200
- 401
- 403
- 404
- 500
请求成功
- application/json
- Schema
- Example (from schema)
Schema
data
object
id string
工作项ID
number integer
工作项编号
title string
工作项标题
projectID string
工作项所属项目ID
issueTypeID string
工作项类型ID
parentID string
父工作项ID
result string
本次请求结果,SUCCESS|FAIL
errorCode string
本次请求错误码
errorMsg string
本次请求错误信息
errorData object
本次请求错误元数据
[
{
"result": "SUCCESS",
"data": {
"id": "5f1f3b93",
"number": 1,
"title": "测试工作项",
"projectID": "5f1f3b93kijun654",
"issueTypeID": "njkib897",
"parentID": "tgmlo876"
}
},
{
"result": "FAIL",
"errorCode": "NotFound",
"errorMsg": "NotFound issue"
}
]
如果身份验证凭据不正确或丢失,则返回
- application/json
- Schema
- Example (from schema)
Schema
result string
本次请求结果,SUCCESS|FAIL
errorCode string
本次请求错误码
errorMsg string
本次请求错误信息
{
"result": "FAIL",
"errorCode": "Unauthorized",
"errorMsg": "Access token is invalid"
}
如果scope检验不通过,则返回
- application/json
- Schema
- Example (from schema)
Schema
result string
本次请求结果,SUCCESS|FAIL
errorCode string
本次请求错误码
errorMsg string
本次请求错误信息
{
"result": "FAIL",
"errorCode": "Forbidden",
"errorMsg": "Scope is invalid"
}
如果未找到资源对象,则返回
- application/json
- Schema
- Example (from schema)
Schema
result string
本次请求结果,SUCCESS|FAIL
errorCode string
本次请求错误码
errorMsg string
本次请求错误信息
{
"result": "FAIL",
"errorCode": "NotFound",
"errorMsg": "Not Found"
}
内部服务器错误
- application/json
- Schema
- Example (from schema)
Schema
result string
本次请求结果,SUCCESS|FAIL
errorCode string
本次请求错误码
errorMsg string
本次请求错误信息
{
"result": "FAIL",
"errorCode": "Internal Server Error",
"errorMsg": "Internal Server Error"
}