How to create project programmatically?

Description
yongpyojang
Posts: 10
Joined: Fri Feb 22, 2019 2:32 am

How to create project programmatically?

Postby yongpyojang » Wed Mar 20, 2019 6:03 am

Dear. All

Can I have Sample Code for IProjectLifecycleManager.CreateProject?

In the previous project, I have no problem to create a new project from template programmatically with 17.* version, however I have an issue on that at the moment. Moreover I can not get the code by security policy.

Project has been create successfully but custom type, custom field and sample data has not been created at all and prefix is configured as 'WI' which was not provided by code, provided prefix was ignored.

It works fine with OOTB functionality, I think I'. missing something in my code.

Code: Select all

createProject(ILocation location, java.lang.String projectId, java.lang.String templateId, java.util.Map paramValues)


the last argument 'Map' is suspicious, I think I've missed something to put in the map.
So, it would be great to get me sample code (java) to create a new project based on template.

Regards,
Yongpyo Jang

yongpyojang
Posts: 10
Joined: Fri Feb 22, 2019 2:32 am

Re: How to create project programmatically?

Postby yongpyojang » Fri Mar 22, 2019 3:16 am

I resolved it.
I mistook to input template name instead of template ID.
It works fine :)


Return to “Polarion Application Lifecycle Management (ALM)”

Who is online

Users browsing this forum: No registered users and 8 guests