How do I go about attaching new plans to existing projects?
At the moment I'm getting:
Exception in thread "main" com.atlassian.bamboo.specs.api.exceptions.BambooSpecsPublishingException: An error occurred while publishing plan APN-MODULES: Duplicate project name modules
thrown, which technically makes sense as that project does already exist.
I can't find anything in the reference API or Java docs for how to create a plan on a project that has already been created.
The method I'm using to create a new plan:
public static Plan createPlan(String planName, String planKey, String planDescription, String projectName, String projectKey) {
Project project = new Project()
.name(projectName)
.key(projectKey);
return new Plan(project, planName, planKey)
.description(planDescription);
}Any help is much appreciated.