文档首页/ ISDP/ API参考/ API接口/ 问题管理/ 修改问题(API名称:updateIssue)
更新时间:2024-01-18 GMT+08:00
分享

修改问题(API名称:updateIssue)

功能介绍

处理人需要对问题进行修改时使用到的接口

相关接口

接口名称

调用说明

获取Token

调用该接口获取到Token,再调用其他接口时,需要在请求消息头中添加“Authorization”,其值即为Token。

新增问题

针对已新建的问题单,进行修改问题;

草稿状态问题才可以修改,提交“待处理”后不可以修改问题

URL

请求方式

HTTPS地址

服务架构

消息体类型

POST

https://isdp+域名/openapi/v1/openIssue/updateIssue

OpenAPI

application/json

请求头

KEY

VALUE

是否必填

描述

Content-Type

application/json

Authorization

bearer ${access_token}

bearer +“ ”+5.2.1中获取的access_token的值

请求参数

参数

类型

是否必填

描述

issueInstance

String

问题实例,1 隐患,0 问题

issueId

Long

问题ID

code

String

问题编码,可以传值,如果不传值则创建后,根据后台默认规则生成

riskList

List

问题风险

issueTypeFather

String

问题大类

issueType

String

问题小类

issueLevel

String

问题级别,传枚举代码:0 ,1,2

issueSource

String

问题来源

issueRemark

String

问题备注

issueAttachmentList

List

附件

先调“附件上传”接口上传后,获取到附件ID作为入参。

action

Integer

0:保存草稿

1:提交

creatorDescribe

String

问题描述

adminOrganization

String

创建人对应组织ID

adminOrganizationName

String

创建人对应组织名称

signSiteId

Long

作业对象ID

signSiteName

String

作业对象名称

issueHandlerId

String

执行人

issueHandlerName

String

执行人名称

department

String

责任部门编码/ID

departmentName

String

责任部门名称

checkUserList

List

检查人清单,多个人用逗号隔开

acceptanceUserList

List

验收人,多个人用逗号隔开

supervisedUserList

List

监督人,多个人用逗号隔开

thirdUrl

String

待办跳转的第三方页面地址

dueTimestamp

Long

计划完成时间戳

dealDate

Long

自动上传的处理时间

submitterAccount

String

提交人账号

isFilterReceiveStatus

Integer

1是代表问题提交执行中,0是代表问题提交到待执行。处理人需要接受。

udf1—udf20

-

-

问题扩展属性

响应参数

参数

类型

描述

stateCode

String

响应状态码:0-成功;其他-失败

errorMessage

String

响应描述

result

Object

响应结果内容

请求示例

{
"issueInstance":"1",
"isFilterReceiveStatus":1,
"code":"11111",
"riskList":[{"riskId":11111,"issueItemId":"11144444","issueRiskMeasuresId":12121,"issueRiskMeasures":"dfdfdfdd"}],
"issueTypeFather":"",
"issueType":"",
"signSiteId":"98908817",
"issueHandlerId":"467848",
"issueHandlerName":"呵呵",
"department":"833",
"issueLevel": 4,
"issueAttachmentList": [
  {
    "fileId": 6610277,
    "fileName": "2020-08-21-09-24-39-613.png",
    "fileType": "png"
  }
],
"udf17": "",
  "udf14": "",
  "udf13": "12345689012345678901234567890123456789012345617890",
  "udf5": "",
  "udf6": "1650816000000",
  "udf10": "测试",
  "udf3": "12345678011234567890123456789012345678901234567123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890890",
  "udf20": "",
  "udf4": "1650852785000",
  "udf1": "",
  "udf2": "",
"checkUserList":[{"userId":467848,"userName":"呵呵","userType":"1","orgId":833,"orgName":"23232","orgPath":"中国区11112223333"}],
"acceptanceUserList":[{"userId":467848,"userName":"呵呵","userType":"1","orgId":833,"orgName":"23232","orgPath":"中国区11112223333"}],
"supervisedUserList":[{"userId":467848,"userName":"呵呵","userType":"1","orgId":833,"orgName":"23232","orgPath":"中国区11112223333"}],
"creatorDescribe": "嘿嘿dddd${number}",
"dueTimestamp": "",
"issueRemark": "ddddddddd",
"action": 1,
"issueSource": 5,
"issueId": 306843,
"submitterAccount":"18829266100"
}

响应示例

{
"stateCode": "0",
    "errorMessage": null,
    "result": {
        "slaStatus": 1,
        "submitPending": 0,
        "status": 2,
        "udf1": "",
        "udf2": "",
        "udf3": "12345678011234567890123456789012345678901234567123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890890",
        "udf4": "1650852785000",
        "udf6": "1650816000000",
        "udf5": "",
        "udf7": null,
        "udf8": null,
        "udf9": null,
        "udf10": "测试",
        "udf12": null,
        "udf11": null,
        "udf13": "12345689012345678901234567890123456789012345617890",
        "udf14": "",
        "udf15": null,
        "udf16": null,
        "udf18": null,
        "udf17": "",
        "udf19": null,
        "udf20": "",
        "signSiteId": 98908817,
        "signSiteName": "jmeter440225166+1",
        "signSiteCode": "jmeter440225166+1",
        "issueTypeCode": "UDF8",
        "issueLevel": 4,
        "issueSource": "5",
        "issueHandlerId": "467848;",
        "issueHandlerName": "呵呵;",
        "createSupplierName": "XX供应商",
        "adminOrganization": "830",
        "adminOrganizationName": "XX作业系统测试",
        "issueHandlerSupplierName": "--",
        "code": "11111",
        "tenantId": 886,
        "createName": "霍XX原lichao",
        "creationTimestamp": 1656326637392,
        "createdBy": 25773,
        "creationDate": "2022-06-27 18:43:57",
        "lastUpdateName": "霍XX原lichao",
        "lastUpdateBy": 25773,
        "lastUpdateDate": "2022-06-27 18:43:57",
        "deleteFlag": 0,
        "dueTimestamp": null,
        "issueType": "",
        "issueTypeFather": "",
        "issueCarbonCopyList": [],
        "action": 1,
        "issueAttachmentList": [
            {
                "fileId": 6610277,
                "fileName": "2020-08-21-09-24-39-613.png",
                "fileType": "png"
            }
        ],
        "issueInstance": "1",
        "thirdUrl": null,
        "operUserId": null,
        "operUserName": null,
        "riskList": [
            {
                "riskId": "11111",
                "issueItemId": "11144444",
                "issueRiskMeasuresId": "12121",
                "issueRiskMeasures": "dfdfdfdd"
            }
        ],
        "checkUserList": [
            {
                "userId": 467848,
                "userName": "呵呵",
                "userType": 1,
                "orgId": 833,
                "orgName": "23232",
                "orgPath": "中国区11112223333"
            }
        ],
        "acceptanceUserList": [
            {
                "userId": 467848,
                "userName": "呵呵",
                "userType": 1,
                "orgId": 833,
                "orgName": "23232",
                "orgPath": "中国区11112223333"
            }
        ],
        "supervisedUserList": [
            {
                "userId": 467848,
                "userName": "呵呵",
                "userType": 1,
                "orgId": 833,
                "orgName": "23232",
                "orgPath": "中国区11112223333"
            }
        ],
        "issueRemark": "ddddddddd",
        "creatorDescribe": "嘿嘿dddd${number}",
        "department": "833",
        "departmentName": null,
        "departmentPath": "",
        "orgPath": "-1.830",
        "region": "中国->XX省->XX市",
        "regionId": 151881,
        "regionName": "XX市",
        "regionPath": "58982,126553,151881",
        "issueAttributeModel": {
            "udf17": "",
            "udf14": "",
            "udf13": "12345689012345678901234567890123456789012345617890",
            "udf5": "",
            "udf6": "1650816000000",
            "udf10": "测试",
            "udf3": "12345678011234567890123456789012345678901234567123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890890",
            "udf20": "",
            "udf4": "1650852785000",
            "udf1": "",
            "udf2": ""
        },
        "entityName": "taskIssue",
        "issueId": 306844,
        "lastUpdatedBy": 25773,
        "appName": "isdp-qc-server",
        "affectedRows": 1
    }
}

状态码

状态码请参见状态码

错误码

错误码请参见错误码

相关文档