全部产品
云市场

工作项API

更新时间:2019-02-12 19:03:24

创建工作项

方法名:CreateWorkitem

入参:

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

出参:

  1. {
  2. "Data": 980466,
  3. "RequestId": "C092691F-4196-4EBC-BCED-4108EAFDE2B7",
  4. "Success": true,
  5. "Code": 0
  6. }

查询工作项详情

方法名:GetWorkitemById

入参:

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

出参:

  1. {
  2. "Data": {
  3. "AssignedToMaps": [],
  4. "User": "润谨",
  5. "IgnoreIntegrate": false,
  6. "ModuleIds": [],
  7. "VersionIds": [],
  8. "Guid": "o3rzrxshfsoo6iwh",
  9. "AssignedToIds": "11726781",
  10. "VerifierStaffId": "aliyun_037642",
  11. "AssignedToIdList": [
  12. 11726781
  13. ],
  14. "VerifierId": 11726781,
  15. "AkProjectId": 153367,
  16. "CommitDate": 1537459200000,
  17. "SkipCollab": false,
  18. "TemplateId": 4,
  19. "PriorityId": 96,
  20. "SendWangwang": true,
  21. "BlackListNotice": [],
  22. "IssueTypeId": 26,
  23. "RegionId": 1148,
  24. "Attachmented": false,
  25. "Id": 1023527,
  26. "RelatedAKProjectIds": [],
  27. "RelatedAKProjectGuids": [],
  28. "ModuleList": [],
  29. "RelatedUserIds": [
  30. 11726781,
  31. 11726781,
  32. 11726781
  33. ],
  34. "Verifier": "润谨",
  35. "RecordChangeLog": true,
  36. "ModuleUpdated": false,
  37. "TrackerIds": [],
  38. "Stamp": "Bug",
  39. "StatusId": 28,
  40. "ProjectIds": [],
  41. "AssignedToStaffId": "aliyun_037642",
  42. "TagIdList": [],
  43. "IgnoreCheck": false,
  44. "SeriousLevelId": 89,
  45. "CfsList": [
  46. {
  47. "Name": "开发产生原因",
  48. "Value": "23121131321",
  49. "Type": "text",
  50. "Id": "126"
  51. },
  52. {
  53. "Name": "缺陷处理简述",
  54. "Value": "22213131231",
  55. "Type": "text",
  56. "Id": "127"
  57. },
  58. {
  59. "Name": "预计工时",
  60. "Value": "1",
  61. "Type": "float",
  62. "Id": "101586"
  63. },
  64. {
  65. "Name": "实际工时",
  66. "Value": "0",
  67. "Type": "float",
  68. "Id": "101587"
  69. }
  70. ],
  71. "AssignedToId": 11726781,
  72. "CreatedAt": 1537528617000,
  73. "UpdatedAt": 1537528617000,
  74. "UserStaffId": "aliyun_037642",
  75. "Subject": "444444",
  76. "Trackers": [],
  77. "AttachmentIds": [],
  78. "Watched": false,
  79. "UserId": 11726781,
  80. "AssignedTo": "润谨",
  81. "ChangeLogList": [],
  82. "LogicalStatus": "normal",
  83. "Priority": "3-Medium",
  84. "Status": "New",
  85. "StatusStage": 1,
  86. "CommentList": [],
  87. "AttachmentList": [],
  88. "VersionList": [],
  89. "SeriousLevel": "3-Normal"
  90. },
  91. "RequestId": "DEB7A3AD-3CD3-4824-A8CA-C12DD8297908",
  92. "Success": true,
  93. "Code": 0
  94. }

更新工作项

方法名: UpdateWorkitem

入参:

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

出参:

  1. {
  2. "Code": 0,
  3. "Data": true,
  4. "Success": true
  5. }

根据项目搜索工作项

方法名:SearchWorkitem

入参:

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

出参:

  1. {
  2. "code": 0,
  3. "data": [{
  4. "sourceId": 0,
  5. "trackers": [],
  6. "closedDuration": 0,
  7. "sendWangwang": true,
  8. "verifierId": 11726781,
  9. "issueRelations": "",
  10. "moduleUpdated": false,
  11. "seriousLevel": "3-Normal",
  12. "subject": "444444",
  13. "attachmented": false,
  14. "source": "top",
  15. "akPaths": [153367, 157100],
  16. "templateId": 4,
  17. "priorityId": 96,
  18. "createdAt": 1537528617000,
  19. "testsuiteId": 0,
  20. "solution": 0,
  21. "statusStage": 1,
  22. "respondDuration": 0,
  23. "watcherIdList": [],
  24. "trackerIds": [],
  25. "seriousLevelId": 89,
  26. "versionList": [],
  27. "id": 1023527,
  28. "verifierStaffId": "aliyun_037642",
  29. "updatedAt": 1537528617000,
  30. "relatedAKProjectGuids": [],
  31. "scopeUserIds": [11726781],
  32. "priority": "3-Medium",
  33. "relatedAKProjectIds": [],
  34. "commitDate": 1537459200000,
  35. "devDuration": 0,
  36. "fixedDuration": 0,
  37. "blackListNotice": [],
  38. "sprintId": 0,
  39. "versionId": 0,
  40. "watched": false,
  41. "idPath": "",
  42. "moduleList": [],
  43. "statusId": 28,
  44. "assignedToIdList": [11726781],
  45. "userStaffId": "aliyun_037642",
  46. "attachmentIds": [],
  47. "recordChangeLog": true,
  48. "region": "581566a6-8012-44f0-8f13-04d1608bf952",
  49. "projectId": 17,
  50. "skipCollab": false,
  51. "tagIdList": [],
  52. "status": "New",
  53. "assignedToId": 11726781,
  54. "commentList": [],
  55. "versionIds": [1238394],
  56. "stamp": "Bug",
  57. "akVersionIds": [],
  58. "projectIds": [],
  59. "changeLogList": [],
  60. "assignedTo": "润谨",
  61. "ignoreIntegrate": false,
  62. "moduleIds": [],
  63. "issueTypeId": 26,
  64. "attachmentList": [],
  65. "logicalStatus": "normal",
  66. "scope": 0,
  67. "assignedToIds": "11726781",
  68. "assignedToStaffId": "aliyun_037642",
  69. "userId": 11726781,
  70. "linePath": "70000,40652886,17",
  71. "parentId": 0,
  72. "fixedUserId": 0,
  73. "ignoreCheck": false,
  74. "verifier": "润谨",
  75. "akProjectId": 153367,
  76. "relatedUserIds": [11726781, 11726781, 11726781],
  77. "user": "润谨"
  78. }],
  79. "success": true,
  80. "requestId": "5C887037-3D99-4F1C-8F44-8722952C0DEF"
  81. }