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

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

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

Thank you. Bamboo spec doesnt give that option :

 

triggers(new RepositoryPollingTrigger()

                        .name("Repository polling"))

                .planBranchManagement(new PlanBranchManagement()

                        .createForVcsBranch()

                        .delete(new BranchCleanup())

                        .notificationForCommitters()

                        .issueLinkingEnabled(false));

   .createForVcsBranch() is exactly what you want

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted Dec 10, 2018 in Confluence

Organizing your space just got easier - Page Tree Drag & Drop is here

Hi Community! I’m Elaine, Confluence Product Manager. You may have read my earlier post about page tree in space navigation sidebar. I'm excited to share another improvement that helps you organize ...

204 views 6 7
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