You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
Next: Root
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
The Atlassian Community can help you and your team get more value out of Atlassian products and practices.
Hi,
We are using Bamboo for CI and need to be able to create projects and plans via the REST API.
I've looked in the network inspector at what the UI does when you add a project etc, but this doesn't really look like APIs we could consume from our application code like we do with the other REST APIs? (e.g. Project permissions).
It is important for us to be able to create at the very least projects from the REST API, which will then enable us to put the relevant permissions in place afterwards. The same would then apply for creating an empty plan, so we can set permissions afterwards too.
If this is a feature gap, please can you let me know how we can get this added?
Thanks,
Mike.
How about using the Bamboo Specs - https://confluence.atlassian.com/bamboo/bamboo-specs-reference-documentation-894743916.html
You can create projects:
Project project = new Project()
.key("PROA")
.name("Project A")
.description("My Project A with all A-plans");
Plans:
Plan plan = new Plan(project, "My Plan One", "PLAN1")
.description("This is an example of a plan")
.enabled(true)
.stages(stage1)
.triggers(scheduledTrigger)
.planBranchManagement(planBranchManagement)
.dependencies(planDependencies)
.linkedRepositories(myGitRepo)
.planRepositories(myBitbucketRepo)
.variables(var1, var2);
and much more -
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.