创建项目集 分享链接

作者:王怡栋 最后编辑:禅道软件 于 2022-03-17 15:02:47 浏览量:3254
POST
/programs

创建项目集

请求头

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

请求体

名称类型必填描述
namestring项目名称
parentstring父项目集,0表示没有父项目集
PMstring项目负责人
budgetint预算金额
budgetUnitstring预算币种(CNY | USD)
descstring项目集描述
begindate预计开始日期
enddate预计结束日期
aclstring访问控制(open 公开 | private 私有)
whitelistarray白名单,只有acl = private才生效

请求响应

名称类型必填描述
idint
namestring项目名称
budgetint预算金额
budgetUnitstring预算币种(CNY | USD)
parentint父项目集
begindate计划开始日期
enddate计划结束日期
realBegandate实际开始日期
realEnddate实际结束日期
descstring项目集描述
openedBy创建人
openedDatestring创建时间
PM负责人
aclstring访问控制(open 公开 | private 私有)
whitelistarray白名单

响应示例

{
    "id": 43,
    "project": 0,
    "model": "",
    "type": "program",
    "lifetime": "",
    "budget": "0",
    "budgetUnit": "CNY",
    "attribute": "",
    "percent": 0,
    "milestone": "0",
    "output": "",
    "auth": "",
    "parent": 0,
    "path": ",43,",
    "grade": 1,
    "name": "项目集21",
    "code": "",
    "begin": "2021-09-11",
    "end": "2021-12-31",
    "realBegan": null,
    "realEnd": null,
    "days": 0,
    "status": "wait",
    "subStatus": "",
    "pri": "1",
    "desc": "",
    "version": 0,
    "parentVersion": 0,
    "planDuration": 0,
    "realDuration": 0,
    "openedBy": {
        "id": 1,
        "account": "admin",
        "avatar": "",
        "realname": "管理员"
    },
    "openedDate": "2021-12-03T02:07:36Z",
    "openedVersion": "",
    "lastEditedBy": "",
    "lastEditedDate": null,
    "closedBy": null,
    "closedDate": null,
    "canceledBy": null,
    "canceledDate": null,
    "PO": null,
    "PM": null,
    "QD": null,
    "RD": null,
    "team": "",
    "acl": "private",
    "whitelist": [
        {
            "id": 1,
            "account": "admin",
            "avatar": "",
            "realname": "管理员"
        }
    ],
    "order": 215,
    "deleted": false
}