Hello,
Within a java class in a jira plugin, what classes and methods do you call to create a project? I already have access to the name of the project and project lead username.
I had been trying to use the ProjectManager createProject and the ProjectCreationData and ProjectCreationData.Builder classes, but the former was throwing Illegal State Exceptions. I assume the exceptions were the result of insufficient fields, but I'm not sure which ones. If this is the case what fields of the ProjectCreationData class must be filled and with what?
I have also seen people mention using the ProjectService class for this purpose, however, I'm not sure as to how to obtain an instance of this class.
Hello,
You can find an answer to your question here:
You can get the ProjectService like this:
def static projectService = ComponentAccessor.getComponent(ProjectService)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.