Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

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

Gajanan Chandgadkar September 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
Atlassian Team members are employees working across the company in a wide variety of roles.
September 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 October 3, 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
Atlassian Team members are employees working across the company in a wide variety of roles.
October 3, 2017

   .createForVcsBranch() is exactly what you want

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events