Last build status

Is there any way of getting the status of a build using a public API? In other words, can we show green and red buttons indicating whether the last build of a project was successful or not?

3 answers

This widget could not be displayed.

You can GET this information from the Bamboo REST API - unfortunately its documentation leaves a bit to be desired still:

  • While mentioned and linked on the Bamboo REST Resources page, it is easily overlooked that the inline information on that page itself is incomplete and only the API reference for your Bamboo version is the recommended source of information on Bamboo REST APIs.
  • Furthermore, while structurally similar, that API reference is also not entirely at the same level as the ones from JIRAConfluence and Bitbucket Server in particular, and frequently lacks the request/response shapes for example.

REST resource

That being said, you are probably looking for the /rest/api/latest/result resource and its various sub resources (the top of the page provides an easier overview of all those variations):

Provide list of latest build results for top level plans visible for users.

Node.js module

Alternatively you might want to check into Sebastiano Armeli's bamboo-api Node.js module, which wraps the Bamboo REST API to get the build status via bamboo.getLatestBuildStatus(planKey, callback) (amongst other useful helper functions):

bamboo.getBuildStatus("PROJECT_KEY-PLAN_KEY/BUILD_NUMBER", function(error, result) {
    if (error) {

    console.log("Status of the build:", result);
This widget could not be displayed.

I am indeed looking for /rest/api/latest/result but on Atlassian's cloud hosted Bamboo. The only thing I've found that could be of any use is the RSS feed i.e.

Using a parser and checking the top one for each project one could perhaps produce a failed/success status. i have to admit that it is a rather tedious way of achieving something as trivial as a green/red button in the project's page. Quite frankly I do not know why this functionality isn't in there already.

This widget could not be displayed.

Hi Steffen, 

I have to eat my own words. The call is available, once just has to... guess the end point!

(you will get a non autorised error but that's fine).

Suggest an answer

Log in or Sign up to answer
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Posted 7 hours ago in Statuspage

What are your best incident management tips and stories? #HugOps

 👋Community members! Downtime happens. And great incident response takes a village. Teams like Support, Dev, SRE, Ops, IT, and Marketing have to come together to resolve the problem while keep...

25 views 0 2
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you