Eric27710
Eric27710

Reputation: 137

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

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

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

Upvotes: 4

Views: 3927

Answers (1)

Oleksiy Chystoprudov
Oleksiy Chystoprudov

Reputation: 1145

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

Upvotes: 4

Related Questions