Content
Project from Template (And project copy) not copying work packages?
Added by Kris Drent over 2 years ago
I'm trying OpenProject and seem to have it a problem with templates and copying projects. I took a quick look and didn't see any bugs around this, so I thought I'd see if it's just a "new user" error.
I just started up a new OpenProject server using docker (per the recommended "one container per process") method. Logged in, did initial setup, and created a project called "Project 1", added work packages. Then, I "copied" the project to a new project with a new name. The copy seemed to work well, all information and work products packages copied over.
I renamed this project "Template Project", then I modified a number of work packages, then used the "Set as Template" button to make it into a template. However, this is where things don't seem to work. When I tried to create a new project using this Template Project as a template, it creates the project, but only 5 of the 25 work packages are copied over the newly created project. The 5 work packages happen to all be of type "Phase" and no "tasks" copied over -- I'm not sure if that is important. Since this didn't work, I also tried to just do a "copy" of the Template Project, rather than creating a new project using a template. However, this had the same result. Only 5 Work Packages copy over, all phases.
What's strange is that if I copy the first project (Project 1), that project still copies just fine. However, the second one "Template Project" does not. Is anyone else hitting issues like this?
Replies (4)
I found the relevant errors on the server logs and discovered that work packages that a have a budget assigned to them are not copied -- they throw an error in the copying process.
Project#copy_work_packages: work package #150 could not be copied: Budget is not set to one of the allowed values.
I submitted a bug for the problem. In the mean time, if anyone else is needing to copy projects successfully, I was able to copy full projects by removing budgets from all work packages prior to copying, or prior to using the project as a template.
You can set
OPENPROJECT_SMTP__OPENSSL__VERIFY__MODE=none
if disabling SSL/TLS verification is absolutely necessary.Use this command to install a bundled software:
openproject config:set OPENPROJECT_SMTP__OPENSSL__VERIFY__MODE=none
Once you have configured this environment variable, please restart your server.
Thank you for sharing this..
Carol Baker wrote:
Thank you for providing the plan!!