Defect #37580

Enable module for multiple projects

Added by Cheng-Hui PENG about 1 month ago. Updated about 1 month ago.

Status:ClosedStart date:
Priority:NormalDue date:
Assignee:-% Done:

0%

Category:Project settings
Target version:-
Resolution:Invalid Affected version:4.2.3

Description

Hi there,

I have installed a new module. How do I enalbe it for multiple projects at once?
There are over 500+ projects in our redmine system, I can't enable it for projects one bye one. Is there a easy way to do that?

History

#1 Updated by Mischa The Evil about 1 month ago

  • Status changed from New to Closed
  • Resolution set to Invalid

We don't provide support via issues which are solely meant for core issue tracking. You should post into the forums instead. I'll close this issue accordingly.

Regarding the subject: Redmine core does not provide features to achieve this using the web-UI. However, you can do this programmatically using either the console or the runner using something along the lines of:

Project.all.each do |project|
  project.enable_module!(:module_name)
end

Also available in: Atom PDF