It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

How can I enable "create plan branch" options through rest apis

Gajanan Chandgadkar Sep 13, 2017

Hi Team,

I am trying to enable "Create Plan branch" option using Bamboo rest api's.(Basically I want to automate it when new plan is created) Refer the attachement for more info.  I dont see any bamboo resti api resources to achieve the same. When I check through browser developer tools, I see POST call on updateBranches.action but there is no such api calls mentioned in bamboo rest api documentation. Please let me know -  if there is a way to automate this using rest api's.

  1. Request URL:http://localhost:8085/chain/admin/config/updateBranches.action
  2. Request Method:POST

create_plan_branch.PNG

1 answer

0 votes
Alexey Chystoprudov Atlassian Team Sep 14, 2017

There's no REST API for this setting. We're working on comprehensive solution for plan management - Bamboo Specs. Give it a try, maybe it will address your option - https://confluence.atlassian.com/bamboo/bamboo-specs-894743906.html

Gajanan Chandgadkar Oct 03, 2017

Thank you. Bamboo spec doesnt give that option :

 

triggers(new RepositoryPollingTrigger()

                        .name("Repository polling"))

                .planBranchManagement(new PlanBranchManagement()

                        .createForVcsBranch()

                        .delete(new BranchCleanup())

                        .notificationForCommitters()

                        .issueLinkingEnabled(false));

Alexey Chystoprudov Atlassian Team Oct 03, 2017

   .createForVcsBranch() is exactly what you want

Suggest an answer

Log in or Sign up to answer
This widget could not be displayed.
This widget could not be displayed.
Community showcase
Published in Opsgenie

Introducing Postmortems for Opsgenie

When incidents happen, it is crucial to diagnose and solve the problem as fast as possible. Equally important to this, teams need a way to reflect on why the incident occurred and how they can improv...

211 views 3 6
Read article

Community Events

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

Find an event

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

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you