How can I get all job_ids that belong to a workflow_id?

Hi,

Given a workflow_id A I would like to be able to find the job IDs (or build_nums) (or a way to go from job_id to build_num) associated with it. The API documentation didn’t give me anything… Wonder if there’s any way to achieve this, perhaps undocumented?

Essentially I want to get the info I see when I go to https://circleci.com/workflow-run/$worfklow_id but programatically

I see that that page runs a POST against https://circleci.com/query-api but I can’t get that to work in my code, it seems to require a ring-session Cookie which I don’t know how to get…

Thanks,
Alex

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.