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

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root


1 badge earned


Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!


Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.


Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!


Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
Community Members
Community Events
Community Groups

Bamboo Specs - java, create plan branch

Is there a way to create a plan branch with the java spec api?

I don't see any examples here:


And I can't find anything here:

2 answers

1 accepted

0 votes
Answer accepted
rsperafico Atlassian Team Apr 03, 2018

Hello @Tom Adamo,

Please, refer to "Manual branch management" under

Kind regards,


This is creating separate plans for each branch, not plan branches, no?

0 votes
Minh Tran Atlassian Team Apr 05, 2018

Or you can refer "Automatic branch management" part the

Here is one example

Plan plan = new Plan(project, planName, planKey)
    .planRepositories(new GitRepository()
    .planBranchManagement(new PlanBranchManagement()

Feel free to ping me if you have other questions


I want to get them created, not configure the settings. This part (sort-of) answered my question:

Minh Tran Atlassian Team Apr 05, 2018

@Tom Adamo Not really. The above code registers the plan to a specific branch pattern "^JIRA-[0-9]+", when a new branch matching that pattern is created, a branch in Bamboo is created for it. That is how it work.

Unless you want to create your branch in Bamboo manually when your branch in SCM is created everytime, then this is not what you want

I already have a repo with existing branches. So, I don't want to just configure the branch management. I want to actually create a plan branch from a script.

Your example will configure the plan to wait until a repo branch (JIRA-1) is created, then it will create the corresponding plan branch. But, I already have the repo branch (JIRA-1) created and I don't want to have to go into the UI and create the plan branch manually.

Like Wojciech Gaudnik likes this

I'm trying to figure out exactly the same, did you solved it ?

Suggest an answer

Log in or Sign up to answer

Atlassian Community Events