Hello,
I am trying to create a new project inside of my plugin, but it doesn’t work. Do you have any idea? That’s my function:
p_NewJiraProjectTypeKey = new ProjectTypeKey("software");
p_NewJiraProjectCreationDataBuilder = new ProjectCreationData.Builder();
ProjectCreationData projectCreationData = p_NewJiraProjectCreationDataBuilder
.withName(_view1_projectname)
.withKey(p_ProjectKey)
.withProjectTemplateKey("com.pyxis.greenhopper.jira:basic-software-development-template")
.withType(p_NewJiraProjectTypeKey)
.withLead(_myClass.getJiraAuthenticationContext().getLoggedInUser())
.withAvatarId(p_NewJiraProjectAvatarId)
.withAssigneeType(AssigneeTypes.UNASSIGNED)
.withDescription(p_NewJiraProjectDescription)
.build();
try {
p_NewJiraProject = _myClass.getProjectManager().createProject(_myClass.getJiraAuthenticationContext().getLoggedInUser(), projectCreationData);
}
It always ends in the catch block (not visible) which only says: “java.lang.IllegalStateException”. Do you have any idea?
Thanks a lot in advance.
Manuel