1. 授权认证
  2. 获取用户个人信息
  3. 项目协同
  4. 代码托管
  5. 持续集成
  6. 制品仓库
  7. 测试管理
  1. 项目协同
  2. 代码仓库
  3. DevOps 实践之旅
  4. 一分钟开始持续集成之旅
  5. 持续部署
  6. 制品库

修改事项

接口描述

中文:修改事项

英文: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": ""
                }
            }
        }
    }
}
上一篇查询具体事项类型的状态列表
最近更新
感谢反馈有用
感谢反馈没用