How do you get all Bamboo plans for a specific project using the Bamboo REST API

Eric27710

I'm working on writing an automated install tool using C# that will allow a user to:

  • First select a Bamboo Project
  • After selecting a Bamboo Project, then the Bamboo Plans under that project will appear.

I have tried this - http://bamboo_host:8085/rest/api/latest/project/TC621/plans

<project expand="plans" key="TC621" name="TruCare 6.2.1">
    <link href="http://bamboo_host.com:8085/rest/api/latest/project/TC621" rel="self"/>
<plans start-index="0" max-result="12" size="12"/>
</project>

But it's not giving me the information I need. The closest I can get is to use this - http://bamboo_host.com:8085/rest/api/latest/project?expand=projects.project.plans.plan

This gives me all project and then all plans. Is there a way to pass the project name in the URI to only list the plans for this project?

Thanks Eric

Oleksiy Chystoprudov

According to Bamboo REST API documentation you should use expand parameter. For example

http://localhost:9087/bamboo/rest/api/1.0/project/TC621?expand=plans
http://localhost:9087/bamboo/rest/api/1.0/project/TC621?expand=plans.plan

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

Can I download Bamboo built artifacts using Bamboo Rest - API?

Is there a way to delete a Bamboo agent using Atlassian Bamboo SDK or Bamboo REST API services?

How to get current branch name in Bamboo using Java Api

How to invoke a Rest API from BAMBOO

How do I retrieve my custom variables from a Bamboo Atlassian Build Plan via REST API

How to get the statistics of tests in a plan through Bamboo API

How to get the plans of a product using stripe-java or rest api

How to get all sprints in project using JIRA REST API

How to get Bamboo Pad working on Ubuntu 14.04

How to get Bamboo to recognize Angular unit tests

Bamboo parent-child build plans

How do you turn off touch on a Wacom Bamboo CTH-470?

Do You Need The Gradle Sonar Plugin To Run SonarQube From Bamboo?

How to parameterize Bamboo builds?

Quarkus project build failing in Bamboo

Get all GCP instances under project using rest API

How to use one sourceode checkout for all the Bamboo stages?

Is it possible to do automatic rollback in bamboo

How do I run a batch script as administrator from Bamboo?

How do I remove the implict 'checkout' task from Bamboo YAML

How to do a git push from within a Bamboo Script task

How do I install python dependency modules through bamboo

How do I run a containerized Bamboo remote agent on demand?

How to get bamboo use different config file on deployment depending on environment

Using Perforce workspaces effectively with Bamboo

Reading specific properties file on specific stages on Bamboo

How do you post a comment to Atlassian confluence using their REST api?

Using VSTS Rest API, how do you Update a Markdown widget?

How to set environment variables in Bamboo?