需求管理 CodeArts Req-细粒度权限用户创建工作项:请求参数

时间:2023-11-01 16:17:01

请求参数

表2 请求Header参数

参数

是否必选

参数类型

描述

X-Auth-Token

String

用户Token。 通过调用IAM服务获取用户Token接口获取(响应消息头中X-Subject-Token的值)。

最小长度:10

最大长度:32768

表3 请求Body参数

参数

是否必选

参数类型

描述

actual_work_hours

Double

实际工时

assigned_id

Integer

处理人id,对应用户信息的数字id

begin_time

String

开始时间,年-月-日

description

String

描述信息

developer_id

Integer

开发者id,对应用户信息的数字id

domain_id

Integer

id 领域, 14 '性能', 15 '功能', 16 '可靠性' 17 '网络安全' 18 '可维护性' 19 '其他DFX' 20 '可用性'

done_ratio

Integer

工作项进度值

end_time

String

结束时间,年-月-日

expected_work_hours

Double

预计工时

iteration_id

Integer

迭代id

module_id

Integer

模块id

name

String

标题

parent_issue_id

Integer

父工作项的id,创建子工作项时必填,父工作项的类型tracker_id不能为2,3

priority_id

Integer

优先级, 1 低, 2 中, 3 高,

severity_id

Integer

重要程度, 10 关键, 11 重要, 12 一般, 13 提示,

status_id

Integer

状态 id, 新建 1, 进行中 2, 已解决 3, 测试中 4, 已关闭 5, 已拒绝 6,

tracker_id

Integer

工作项类型, 2任务/Task,3缺陷/Bug,5Epic,6Feature,7Story; 5 只能为 6 的父工作项类型; 6 只能为 7 的父工作项类型; 7 只能为 2,3的父;

new_custom_fields

Array of NewCustomField objects

用户自定义字段

creator

Creator object

custom_fields

Array of ScrumCustomField objects

用户自定义字段

表4 NewCustomField

参数

是否必选

参数类型

描述

custom_field

String

自定义字段

field_name

String

自定义字段名称

value

String

自定义属性对应的值,多个值以英文逗号区分开

表5 Creator

参数

是否必选

参数类型

描述

user_id

String

指定工作项的创建者用户id

表6 ScrumCustomField

参数

是否必选

参数类型

描述

name

String

自定义字段

value

String

自定义字段值

support.huaweicloud.com/api-projectman/CreateSystemIssueV4.html