跳转至

修改一个Issue信息



POST /api/v1/issue/{issue_uuid}/modify

概述

路由参数

参数名 类型 必选 说明
issue_uuid string Y issueUUID

Body 请求参数

参数名 类型 必选 说明
name string 标题名称
例子: name
允许为空: False
$maxCustomLength: 256
level string 等级,对应等级配置uuid
例子: level
允许为空: False
description string 描述
例子: description
允许为空: False
statusType integer issue的状态
例子: statusType
允许为空: False
可选值: [10, 20, 30]
extend json Y 额外拓展信息,没有内容默认{}
例子: {}
允许为空: True
attachmentUuids array 附件上传列表uuid
例子: []
允许为空: True

参数补充说明

基本参数说明

参数名 参数类型 是否必填 参数说明
name string Y issue标题名称
level string Y issue等级 对应配置等级uuid
decription string Y issue描述信息
attachmentUuids array N 附件上传列表uuid
extend json Y 扩展字段,默认传{}
resourceType string N event:事件;dashboard:仪表板;viewer:查看器
resourceUUID string N 资源关联的uuid
resource string N 对应资源名称
channelUUIDs array N 期望issue投递的资源列表,默认投递默认空间默认频道

扩展字段extend说明

更新场景中,channels和channelUUIDs的作用会默认的向默认频道和追加的频道中进行关联处理, 如果传[],默认只会存在空间默认频道中

参数名 参数类型 是否必填 参数说明
channels array N 期望issue投递的资源列表
members array N 期望issue通知的通知对象成员
manager array N 负责人的账号uuid

请求例子

curl 'https://openapi.guance.com/api/v1/issue/issue_7b1f8986a7b44d7a987976fb5c7876fc/modify' \
-H 'DF-API-KEY: <DF-API-KEY>' \
-H 'Content-Type: application/json;charset=UTF-8' \
--data-raw '{"statusType":20}'\
--compressed

响应

{
    "code": 200,
    "content": {
        "createAt": 1686398344,
        "creator": "acnt_861cf6dd440348648861247ae42909c3",
        "creatorInfo": {
            "acntWsNickname": "",
            "email": "1061379682@qq.com",
            "iconUrl": "",
            "name": "wanglei-testing",
            "username": "1061379682@qq.com"
        },
        "deleteAt": -1,
        "description": "",
        "extend": {
            "channels": [
                {
                    "exists": true,
                    "type": "#",
                    "uuid": "chan_d5054276d1a74b518bf1b16f59c26e95"
                }
            ],
            "view_isuue_url": ""
        },
        "id": 47402,
        "level": "system_level_2",
        "name": "dcacscsc",
        "resource": "",
        "resourceType": "",
        "resourceUUID": "",
        "status": 0,
        "statusType": 20,
        "subIdentify": "",
        "updateAt": 1686400483,
        "updator": "acnt_861cf6dd440348648861247ae42909c3",
        "updatorInfo": {
            "acntWsNickname": "",
            "email": "1061379682@qq.com",
            "iconUrl": "",
            "name": "wanglei-testing",
            "username": "1061379682@qq.com"
        },
        "uuid": "issue_7b1f8986a7b44d7a987976fb5c7876fc",
        "workspaceUUID": "wksp_ed134a6485c8484dbd0e58ce9a9c6115"
    },
    "errorCode": "",
    "message": "",
    "success": true,
    "traceId": "1744405827768254151"
} 

文档评价

文档内容是否对您有帮助? ×