Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

How do I get a complete list of job runs through the REST API?

Andrew Stiles November 26, 2014

Basically, I'm trying to get the same info through the API that you can get through the web UI when going to /browse/KEY-PLANKEY-JOB1. That is, a list of the last few runs of the job, regardless of their state. I can get most of the interesting information from /rest/api/latest/result/KEY-PLANKEY-JOB1; however, it skips any runs with an "Unknown" state (or with a lifeCycleState="NotBuilt"). Is it possible, through the REST API, to get a list that includes these runs that were in a bad state?

1 answer

1 accepted

1 vote
Answer accepted
Krystian Brazulewicz
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
November 27, 2014

As our REST documentation says you need to add ?includeAllStates=true to your request URL

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events