I added a module to redmine, how to enable it for many projects at the same time?

I have all these new new plugins, and I can include them in any project.

However, I see no way to add / remove them from several projects at the same time.

Perhaps I need a module control module ?; -)

+4
source share
3 answers

In my case, Redmine 3.1.0 and MySQL are used as the database server. I think you will get the main idea in the case of a different Confucius.

DELETE FROM `enabled_modules` WHERE `name` = 'module_name_here'; INSERT INTO `enabled_modules` (`project_id`, `name`) SELECT `id`, 'module_name_here' FROM `projects` 

You can activate a module for one project to find out its name from enabled_modules. Or you can find it in the plugin sources, it should look like "project_module: module_name_here"

Please do not do this if you do not quite understand what this answer is about!

PS: Yes, I know - this is a dirty solution, but it is fast and easy enough for work that is required once a year or less.

+2
source

It has been a while, and I believe that the OP has since resolved its problem. If anyone else has a problem:

We also had to activate several modules in all projects and write a small script to do this for us: https://github.com/EugenMayer/enable_chiliproject_modules

Edit: This was created and tested for the Redmine "Chiliproject" fork, but should work unchanged in Redmine.

+1
source

How can I include several projects at once?

You cannot - at least not using the user interface.

0
source

All Articles