How to configure ProjectCreationData to validateCreateProject ?

Adhikari Jitendra Kumar Das May 9, 2017

I am creating a project in JIRA 7 , while i am using validateCreateProject method and passing Application user and projectCreationData as patameter.

In return i am getting a null object , and there is no  log generated hence i am not getting any clue to resolve the same .

Code:

pcdBuilder.withType(sourceProjectKey).withProjectTemplateKey(null).withName(targetProjectName).withKey(targetProjectKey).withDescription("Testing").withUrl("abc").withLead(user);
ProjectCreationData pcd = pcdBuilder.build();
log.warn("Before creating Project >> "+pcd.toString());
CreateProjectValidationResult newProjectVR = projectService
.validateCreateProject(user, // User
pcd 
); 

Please suggest.

 

 

Regards,

Jitendra

0 answers

Suggest an answer

Log in or Sign up to answer