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

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
This widget could not be displayed.
This widget could not be displayed.
Community showcase
Published Apr 09, 2019 in Portfolio for Jira

Portfolio for Jira 3.0 is here!

The wait is over... Portfolio for Jira Server and Data Center 3.0 is now officially here! Platform releases offer Atlassian an opportunity to shift our strategy, make bold predictions about t...

1,207 views 8 24
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