创建执行 分享链接

作者:王怡栋 浏览量:5460
POST
/projects/:id/executions

创建执行

请求头

名称类型必填描述
TokenString认证凭证

请求体

名称类型必填描述
projectint所属项目
namestring执行名称
codestring执行代号
begindate计划开始日期
enddate计划结束日期
daysint可用工作日
lifetimestring类型(short 短期 | long 长期 | ops 运维)
POstring产品负责人
PMstring迭代负责人
QDstring测试负责人
RDstring发布负责人
teamMembersarray团队成员 ["admin"]
descstring迭代描述
aclstring访问控制(private 私有 | open 继承项目权限)
whitelistarray白名单

请求示例

{"name": "测试执行1", "code": "test1", "begin": "2021-12-01", "end": "2021-12-11", "days": 10}

请求响应

名称类型必填描述
idint执行ID
projectboolean所属项目
namestring执行名称
codestring执行代号
daysint可用工作日
begindate计划开始日期
enddate计划结束日期
lifetimestring类型(short 短期 | long 长期 | ops 运维)
PO产品负责人
PM迭代负责人
QD测试负责人
RD发布负责人
teamMembersarray团队成员 ["admin"]
descstring迭代描述
aclstring访问控制(private 私有 | open 继承项目权限)
whitelistarray白名单,acl = private时生效
openedBystring创建人
openedDatedatetime创建时间

响应示例

{
    "id": 40,
    "project": 12,
    "model": "",
    "type": "sprint",
    "lifetime": "",
    "budget": "0",
    "budgetUnit": "CNY",
    "attribute": "",
    "percent": 0,
    "milestone": "0",
    "output": "",
    "auth": "",
    "parent": 12,
    "path": ",12,40,",
    "grade": 1,
    "name": "测试执行1",
    "code": "test1",
    "begin": "2021-12-01",
    "end": "2021-12-11",
    "realBegan": "0000-00-00",
    "realEnd": "0000-00-00",
    "days": 100,
    "status": "wait",
    "subStatus": "",
    "pri": "1",
    "desc": "",
    "version": 0,
    "parentVersion": 0,
    "planDuration": 0,
    "realDuration": 0,
    "openedBy": "admin",
    "openedDate": "2021-11-28T15:37:59Z",
    "openedVersion": "15.8",
    "lastEditedBy": "admin",
    "lastEditedDate": "2021-11-28T15:37:59Z",
    "closedBy": "",
    "closedDate": null,
    "canceledBy": "",
    "canceledDate": null,
    "PO": "",
    "PM": "",
    "QD": "",
    "RD": "",
    "team": "测试执行1",
    "acl": "private",
    "whitelist": ",",
    "order": 200,
    "deleted": "0",
    "totalHours": 700,
    "totalEstimate": 0,
    "totalConsumed": 0,
    "totalLeft": 0
}