【问题标题】:Get the sprint list with start and end dates获取包含开始和结束日期的 sprint 列表
【发布时间】:2016-06-27 09:37:29
【问题描述】:

我正在寻找一个休息 API 来获取所有 sprint 及其各自的开始和结束日期。我可以使用 API 获取 sprint 列表

rest/greenhopper/1.0/sprintquery/boardId?includeFutureSprints=true&includeHistoricSprints=false

以及使用

的 sprint 信息
rest/agile/1.0/sprint/sprintId

但是,我需要为每个 sprint 调用第二个 API。是否有提供 sprint 列表及其信息(例如开始和结束日期)的 API。

【问题讨论】:

标签: jira jira-agile jira-rest-java-api


【解决方案1】:

如果您使用 JIRA 软件在 JIRA 7 上,您可以使用: GET /rest/agile/1.0/board/{boardId}/sprint

这将返回包含 startDateendDate 的结果,例如:

{
    "maxResults": 2,
    "startAt": 1,
    "total": 5,
    "isLast": false,
    "values": [{
        "id": 37,
        "self": "http://www.example.com/jira/rest/agile/1.0/sprint/23",
        "state": "closed",
        "name": "sprint 1",
        "startDate": "2015-04-11T15:22:00.000+10:00",
        "endDate": "2015-04-20T01:22:00.000+10:00",
        "completeDate": "2015-04-20T11:04:00.000+10:00",
        "originBoardId": 5
    },
    {
        "id": 72,
        "self": "http://www.example.com/jira/rest/agile/1.0/sprint/73",
        "state": "future",
        "name": "sprint 2"
    }]
}

【讨论】:

    猜你喜欢
    • 2023-03-07
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2011-07-10
    • 1970-01-01
    • 1970-01-01
    • 2018-08-13
    • 1970-01-01
    相关资源
    最近更新 更多