修改事项
接口描述
中文:修改事项
英文:ModifyIssue
输入参数
参数名称 | 必选 | 类型 | 描述 |
---|---|---|---|
Action | 是 | String | 公共参数,本接口取值:ModifyIssue |
ProjectName | 是 | String | 项目名称 |
IssueCode | 是 | Integer | 事项 Code |
ParentCode | 否 | Integer | 所属事项 Code |
Name | 是 | String | 事项名称 |
StatusId | 否 | Integer | 事项状态 Id |
AssigneeId | 否 | Integer | 指派人 Id |
DueDate | 否 | String | 截止日期 |
StartDate | 否 | String | 开始日期 |
WorkingHours | 否 | Double | 工时(小时) |
ProjectModuleId | 否 | Integer | 项目模块 Id |
WatcherIds | 否 | Array of Integer | 添加的事项关注人 Id 列表 |
DelWatcherIds | 否 | Array of Integer | 删除的事项关注人 Id 列表 |
DefectTypeId | 否 | Integer | 项目缺陷类型 Id |
RequirementTypeId | 否 | Integer | 项目需求类型 Id |
Priority | 否 | String | 优先级 “0” - 低 “1” - 中 “2” - 高 “3” - 紧急 |
StoryPoint | 否 | String | 故事点,例如:0.5、1 |
LabelIds | 否 | Array of Integer | 添加的标签 Id 列表 |
DelLabelIds | 否 | Array of Integer | 删除的标签 Id 列表 |
FileIds | 否 | Array of Integer | 添加的文件 Id 列表 |
DelFileIds | 否 | Array of Integer | 删除的文件 Id 列表 |
CustomFieldValues | 否 | Array of IssueCustomFieldForm | 自定义属性值列表 |
输出参数
参数名称 | 类型 | 描述 |
---|---|---|
Issue | IssueDetail | 事项信息 |
RequestId | String | 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 |
事项自定义属性
名称 | 必选 | 类型 | 描述 |
---|---|---|---|
Id | 是 | Integer | 事项自定义属性 Id |
Content | 是 | String | 自定义属性值 多选值使用逗号 “,” 分隔 |
示例
输入示例
{
"Action": "ModifyIssue",
"ProjectName": "demo-project",
"IssueCode": 3,
"Type": "REQUIREMENT",
"Name": "ceshi-20200817",
"Priority": "2",
"AssigneeId": 1
}
输出示例
{
"Response": {
"RequestId": "d68f3669-a9ee-ac91-dfec-95e80a134906",
"Issue": {
"ParentType": "REQUIREMENT",
"Code": 3,
"Type": "REQUIREMENT",
"Name": "ceshi-20200817",
"Description": "",
"IterationId": 1,
"IssueStatusId": 4,
"IssueStatusName": "未开始",
"IssueStatusType": "TODO",
"Priority": "2",
"Assignee": {
"Id": 1,
"Status": 2,
"GlobalKey": "coding",
"Avatar": "https://dn-coding-net-production-static.codehub.cn/512b2a62-956b-4ef8-8e84-b3c66e71468f.png?imageMogr2/auto-orient/format/png/crop/!300x300a0a0",
"Media": "https://dn-coding-net-production-static.codehub.cn/512b2a62-956b-4ef8-8e84-b3c66e71468f.png?imageMogr2/auto-orient/format/png/crop/!300x300a0a0",
"Name": "coding",
"Email": ""
},
"StartDate": 0,
"DueDate": 0,
"WorkingHours": 0.0,
"Creator": {
"Id": 1,
"Status": 2,
"GlobalKey": "coding",
"Avatar": "https://dn-coding-net-production-static.codehub.cn/512b2a62-956b-4ef8-8e84-b3c66e71468f.png?imageMogr2/auto-orient/format/png/crop/!300x300a0a0",
"Media": "https://dn-coding-net-production-static.codehub.cn/512b2a62-956b-4ef8-8e84-b3c66e71468f.png?imageMogr2/auto-orient/format/png/crop/!300x300a0a0",
"Name": "coding",
"Email": ""
},
"StoryPoint": "",
"CreatedAt": 1597895345000,
"UpdatedAt": 1598845197195,
"CompletedAt": 0,
"ProjectModule": {
"Id": 0,
"Name": ""
},
"Watchers": [
{
"Id": 1,
"Status": 2,
"GlobalKey": "coding",
"Avatar": "https://dn-coding-net-production-static.codehub.cn/512b2a62-956b-4ef8-8e84-b3c66e71468f.png?imageMogr2/auto-orient/format/png/crop/!300x300a0a0",
"Media": "https://dn-coding-net-production-static.codehub.cn/512b2a62-956b-4ef8-8e84-b3c66e71468f.png?imageMogr2/auto-orient/format/png/crop/!300x300a0a0",
"Name": "coding",
"Email": ""
}
],
"Labels": [],
"Files": [],
"RequirementType": {
"Id": 0,
"Name": ""
},
"DefectType": {
"Id": 0,
"Name": "",
"IconUrl": ""
},
"CustomFields": [],
"ThirdLinks": [],
"SubTasks": [],
"Parent": {
"Code": 0,
"Type": "",
"Name": "",
"IssueStatusId": 0,
"IssueStatusName": "",
"Priority": "",
"Assignee": {
"Id": 0,
"Status": 0,
"GlobalKey": "",
"Avatar": "",
"Media": "",
"Name": "",
"Email": ""
}
},
"Epic": {
"Code": 0,
"Type": "",
"Name": "",
"IssueStatusId": 0,
"IssueStatusName": "",
"Priority": "",
"Assignee": {
"Id": 0,
"Status": 0,
"GlobalKey": "",
"Avatar": "",
"Media": "",
"Name": "",
"Email": ""
}
}
}
}
}

感谢反馈有用
感谢反馈没用