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
Published Wednesday in Opsgenie

Getting the Most out of Atlassian and Opsgenie Together

We’re excited to invite you to this action-packed webinar where we will demonstrate how to integrate Opsgenie’s powerful alerting and on-call management tools with your entire Atlassian stack. Mar...

73 views 0 1
Read article

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