使用管道访问任务的历史记录 API

Access the history of a task using the Conduit API

我希望能够使用 Phabricator Conduit API 获取有关任务的历史信息,例如 assigned/unassigned 以及它在工作板上移动列的时间。

我查看了管道 API Documentation 并且我能够提供项目 PHID 并获取有关工作板上任务当前状态的信息,但不是它们的历史.

这是我想通过 API

取回的信息示例

您可以使用 maniphest.gettasktransactions。这是一个冻结的方法,但我没有看到任何现代方法来获取此信息。

示例结果:

{
  "2059": [
    {
      "taskID": "2059",
      "transactionID": "36573",
      "transactionPHID": "PHID-XACT-TASK-4fyapons4cxspcv",
      "transactionType": "core:columns",
      "oldValue": null,
      "newValue": [
        {
          "columnPHID": "PHID-PCOL-l47qpqaqky5cucv53jtj",
          "boardPHID": "PHID-PROJ-ogxwp55og5rqok56vmot",
          "fromColumnPHIDs": {
            "PHID-PCOL-azcgsgut44vew2sfqhh7": "PHID-PCOL-azcgsgut44vew2sfqhh7"
          }
        }
      ],
      "comments": null,
      "authorPHID": "PHID-USER-gimad45egg7tcccxd6co",
      "dateCreated": "1556545748"
    },
    {
      "taskID": "2059",
      "transactionID": "36572",
      "transactionPHID": "PHID-XACT-TASK-y2fjn5yzby4mdz6",
      "transactionType": "core:edge",
      "oldValue": [],
      "newValue": [
        "PHID-CMIT-idy5uamuuz3eespdsmvd"
      ],
      "comments": null,
      "authorPHID": "PHID-USER-gimad45egg7tcccxd6co",
      "dateCreated": "1556545665"
    },
    {
      "taskID": "2059",
      "transactionID": "36382",
      "transactionPHID": "PHID-XACT-TASK-rwanaewpmqpzslc",
      "transactionType": "core:subscribers",
      "oldValue": [
        "PHID-USER-2clcr42jsfygiyne64kq",
        "PHID-USER-whapfbsypxiafuoy3wi5",
        "PHID-USER-gimad45egg7tcccxd6co"
      ],
      "newValue": [
        "PHID-USER-whapfbsypxiafuoy3wi5",
        "PHID-USER-gimad45egg7tcccxd6co"
      ],
      "comments": null,
      "authorPHID": "PHID-USER-2clcr42jsfygiyne64kq",
      "dateCreated": "1555615023"
    },
    [...]