产品计划

获取产品计划列表 分享链接 /book/api/680.html

作者:王怡栋 最后编辑:宋辰轩 于 2024-09-30 14:25:01 浏览量:6623
GET
/products/id/plans

获取产品计划列表

请求URL

https://xxx.com/api.php/v1/products/id/plans

请求头

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

请求响应

名称 类型 必填 描述
page int 当前页数
total int 计划总数
limit int 每页计划数
plans array 计划列表
  ∟  id int 计划ID
  ∟  product int 所属产品
  ∟  branch int 所属分支
  ∟  title string 计划名称
  ∟  desc string 计划描述
  ∟  begin date 开始日期
  ∟  end date 结束日期

响应示例

{
    "page": 1,
    "total": 1,
    "limit": 1,
    "plans": [
        {
            "id": 1,
            "product": 1,
            "branch": 0,
            "parent": 0,
            "title": "1.0beta",
            "status": "wait",
            "desc": "",
            "begin": "2022-11-09",
            "end": "2030-01-01",
            "order": "",
            "closedReason": "",
            "deleted": false,
            "stories": 2,
            "bugs": 0,
            "hour": 0,
            "projects": {
                "2": {
                    "project": 2,
                    "name": "计划1.0beta迭代"
                }
            },
            "expired": false
        }
    ]
}  
评论列表
🎊
阳刚的木瓜 2025-01-09 12:57:49 回复
子计划似乎没有返回?、
回复
我使用18.12 及后续版本测试 ,可以返回的

{
"page": 1,
"total": 2,
"limit": 20,
"plans": [
{
"id": 1,
"product": 1,
"branch": "0",
"parent": -1,
"title": "test1",
"status": "wait",
"desc": "",
"begin": "2025-01-09",
"end": "待定",
"finishedDate": "",
"closedDate": "",
"order": "0",
"closedReason": "",
"createdBy": "admin",
"createdDate": "2025-01-09 13:23:02",
"deleted": false,
"children": [
{
"id": 2,
"product": 1,
"branch": "0",
"parent": 1,
"title": "test1的子计划",
"status": "wait",
"desc": "",
"begin": "2025-01-09",
"end": "待定",
"finishedDate": "",
"closedDate": "",
"order": "0",
"closedReason": "",
"createdBy": "admin",
"createdDate": "2025-01-09 13:23:13",
"deleted": "0",
"stories": 0,
"bugs": 0,
"hour": 0,
"projects": [],
"expired": false,
"branchName": "",
"actions": [
"start",
"finish",
"close",
"activate",
"createExecution",
"divider",
"linkStory",
"linkBug",
"edit",
"create",
"delete"
]
}
],
"stories": 0,
"bugs": 0,
"hour": 0,
"projects": [],
"expired": false,
"branchName": "",
"actions": [
"start",
"finish",
"close",
"activate",
"createExecution",
"divider",
"linkStory",
"linkBug",
"edit",
"create",
"delete"
]
}
]
}
高丽亚
高级客户经理
17667930330
3645260865
统一服务热线 4006-8899-23
我要提问提问有任何问题,您都可以在这里提问。 问题反馈反馈点击这里,让我们聆听您的建议与反馈。