CircleCI Ideas

API listing latest workflows

Cicle 2.0 is a great step forward, but the lack of API limits what we can do with workflows. It implies that we need to make a great deal of processing the jobs result to find the status of the Workflow (If all the steps succeeded, how log the whole workflow took, etc)

Ideally it would work Similarly to the the already existing API endpoint
https://circleci.com/docs/api/#recent-builds-for-a-single-project

curl https://circleci.com/api/v1.1/project/:vcs-type/:username/:project?circle-token=:token&limit=20&offset=5&filter=completed

 

Having the same for workflows, and their basic details / status.

curl https://circleci.com/api/v1.1/project/:vcs-type/:username/:project/workflows?circle-token=:token&limit=20&offset=5&filter=completed


To get what is found in this page:

https://circleci.com/gh/:organization/workflows

{
  "status": "running"
  "jobs" : {
     "job_one": {
          "status": "running"
      },
      "job_two" {
          "status": "dependecy_waiting"
     }
...
   }
}



  • Avatar32.5fb70cce7410889e661286fd7f1897de Guest
  • Nov 7 2018
  • New
API
  • Attach files
  • Avatar40.8f183f721a2c86cd98fddbbe6dc46ec9
    Guest commented
    24 Jan 00:19

    so important. please?