文档

工作项API

更新时间:
一键部署

创建工作项

方法名:CreateWorkitem

入参:

TemplateId:模版的ID,必传
CorpIdentifier: 企业标识符,必传
Author:作者,填写作者的工号或者邮箱,必传
AssignedTo:指派者,填写指派者的工号或者邮箱,必传
Subject:工作项标题,必传
Description:工作项描述信息,非必传
Stamp:可选值有Bug(缺陷)、Req(需求)、Task(任务),必传
AKProjectId:归属项目,必传
CfList:自定义属性,非必传
Verifier:验证者,非必传
PriorityId: 优先级,非必传
SeriousLevelId:严重程度,非必传
WatcherUsers:跟踪者,非必传
ModuleIds:模块,非必传

出参:

{
"Data": 980466,
"RequestId": "C092691F-4196-4EBC-BCED-4108EAFDE2B7",
"Success": true,
"Code": 0
}

查询工作项详情

方法名:GetWorkitemById

入参:

Id:工作项id,必传
CorpIdentifier: 企业标识符,必传

出参:

{
"Data": {
"AssignedToMaps": [],
"User": "润谨",
"IgnoreIntegrate": false,
"ModuleIds": [],
"VersionIds": [],
"Guid": "o3rzrxshfsoo6iwh",
"AssignedToIds": "11726781",
"VerifierStaffId": "aliyun_037642",
"AssignedToIdList": [
11726781
],
"VerifierId": 11726781,
"AkProjectId": 153367,
"CommitDate": 1537459200000,
"SkipCollab": false,
"TemplateId": 4,
"PriorityId": 96,
"SendWangwang": true,
"BlackListNotice": [],
"IssueTypeId": 26,
"RegionId": 1148,
"Attachmented": false,
"Id": 1023527,
"RelatedAKProjectIds": [],
"RelatedAKProjectGuids": [],
"ModuleList": [],
"RelatedUserIds": [
11726781,
11726781,
11726781
],
"Verifier": "润谨",
"RecordChangeLog": true,
"ModuleUpdated": false,
"TrackerIds": [],
"Stamp": "Bug",
"StatusId": 28,
"ProjectIds": [],
"AssignedToStaffId": "aliyun_037642",
"TagIdList": [],
"IgnoreCheck": false,
"SeriousLevelId": 89,
"CfsList": [
{
"Name": "开发产生原因",
"Value": "23121131321",
"Type": "text",
"Id": "126"
},
{
"Name": "缺陷处理简述",
"Value": "22213131231",
"Type": "text",
"Id": "127"
},
{
"Name": "预计工时",
"Value": "1",
"Type": "float",
"Id": "101586"
},
{
"Name": "实际工时",
"Value": "0",
"Type": "float",
"Id": "101587"
}
],
"AssignedToId": 11726781,
"CreatedAt": 1537528617000,
"UpdatedAt": 1537528617000,
"UserStaffId": "aliyun_037642",
"Subject": "444444",
"Trackers": [],
"AttachmentIds": [],
"Watched": false,
"UserId": 11726781,
"AssignedTo": "润谨",
"ChangeLogList": [],
"LogicalStatus": "normal",
"Priority": "3-Medium",
"Status": "New",
"StatusStage": 1,
"CommentList": [],
"AttachmentList": [],
"VersionList": [],
"SeriousLevel": "3-Normal"
},
"RequestId": "DEB7A3AD-3CD3-4824-A8CA-C12DD8297908",
"Success": true,
"Code": 0
}

更新工作项

方法名:UpdateWorkitem

入参:

CorpIdentifier 企业标识符,必填    
Modifier 当前修改人,必填    
IssueId 工作项id,必填
AkProjectId 项目id,必填
AssignedTo 指派者,非必填    
TemplateId 模板id,非必填    
Subject 标题,非必填    
Description 内容详情,非必填    
Stamp 类型,非必填
CfList 自定义属性,非必填    
Status 状态,非必填    
Priority,优先级,非必填    
SeriousLevel,严重程度,非必填    
Verifier,验证者,非必填    
SprintId,迭代id,非必填

出参:

{
"Code": 0,
"Data": true,
"Success": true
}

根据项目搜索工作项

方法名:SearchWorkitem

入参:

Stamp:类型,可传
AKProjectId:项目id,必传
ToPage:第几页,可传
PageSize: 每页大小,可传
CorpIdentifier: 企业标识符,必传
SprintId: 迭代id,可传

出参:

{
    "code": 0,
    "data": [{
        "sourceId": 0,
        "trackers": [],
        "closedDuration": 0,
        "sendWangwang": true,
        "verifierId": 11726781,
        "issueRelations": "",
        "moduleUpdated": false,
        "seriousLevel": "3-Normal",
        "subject": "444444",
        "attachmented": false,
        "source": "top",
        "akPaths": [153367, 157100],
        "templateId": 4,
        "priorityId": 96,
        "createdAt": 1537528617000,
        "testsuiteId": 0,
        "solution": 0,
        "statusStage": 1,
        "respondDuration": 0,
        "watcherIdList": [],
        "trackerIds": [],
        "seriousLevelId": 89,
        "versionList": [],
        "id": 1023527,
        "verifierStaffId": "aliyun_037642",
        "updatedAt": 1537528617000,
        "relatedAKProjectGuids": [],
        "scopeUserIds": [11726781],
        "priority": "3-Medium",
        "relatedAKProjectIds": [],
        "commitDate": 1537459200000,
        "devDuration": 0,
        "fixedDuration": 0,
        "blackListNotice": [],
        "sprintId": 0,
        "versionId": 0,
        "watched": false,
        "idPath": "",
        "moduleList": [],
        "statusId": 28,
        "assignedToIdList": [11726781],
        "userStaffId": "aliyun_037642",
        "attachmentIds": [],
        "recordChangeLog": true,
        "region": "581566a6-8012-44f0-8f13-04d1608bf952",
        "projectId": 17,
        "skipCollab": false,
        "tagIdList": [],
        "status": "New",
        "assignedToId": 11726781,
        "commentList": [],
        "versionIds": [1238394],
        "stamp": "Bug",
        "akVersionIds": [],
        "projectIds": [],
        "changeLogList": [],
        "assignedTo": "润谨",
        "ignoreIntegrate": false,
        "moduleIds": [],
        "issueTypeId": 26,
        "attachmentList": [],
        "logicalStatus": "normal",
        "scope": 0,
        "assignedToIds": "11726781",
        "assignedToStaffId": "aliyun_037642",
        "userId": 11726781,
        "linePath": "70000,40652886,17",
        "parentId": 0,
        "fixedUserId": 0,
        "ignoreCheck": false,
        "verifier": "润谨",
        "akProjectId": 153367,
        "relatedUserIds": [11726781, 11726781, 11726781],
        "user": "润谨"
    }],
    "success": true,
    "requestId": "5C887037-3D99-4F1C-8F44-8722952C0DEF"
}
  • 本页导读 (0)