Project

General

Profile

Adding a button to add multiple projects to user

Added by Kyle D over 14 years ago

Good morning,

Under the administration panel, I am currently trying to add a button that will allow me to assign all available projects to a user. It would be quite a tedious process to go through and individually assigning each project.

I have been able to add the button to the menu by editing trunk/app/views/users/_memberships.rhtml, but I cannot figure out how to edit the actual code in order to have it do what I need it to do. I have been using the edit_membership method in the users_controller.rb as a reference point, by my main issue comes from not knowing how to cycle through each available project to assign. The edit_membership function depends upon the input from the projects and roles drop-down menu, but since I won't have a project drop-down menu for my button, I am not sure how to access that data.

I'd certainly appreciate any help with this.


Replies (9)

RE: Adding a button to add multiple projects to user - Added by Kyle D over 14 years ago

Anybody? I really need to get this done, but I still have yet to figure out the syntax for this.

RE: Adding a button to add multiple projects to user - Added by Nanda P over 14 years ago

+1

It will be nice to have "This Project & all sub projects under this" option.

So that we can select a top level project(since we have "unlimited project nesting" working with trunk) and assign a role to that user for all its sub projects.

What do you guys think?

RE: Adding a button to add multiple projects to user - Added by Karsten Heymann over 14 years ago

+1

This would be really great.

Even nicer would be to have permission templates, which can have different roles to different projects and can be assigned to users. The OTRS Trouble Ticket System does this very nicely and makes permission management very comfortable. If I knew any Ruby I would even give it a try myself.

RE: Adding a button to add multiple projects to user - Added by Kyle D over 14 years ago

Last call.....I was really hoping to have some advice on this by tomorrow. I need to have it done by noon.

RE: Adding a button to add multiple projects to user - Added by Marcin Trendota almost 13 years ago

I see there is no interest in this feature. That's a pity. I have dozens of projects and need to add user (and eventually even more users) to all of them. Groups are not the answer (although they help). Changing project dropdown box to list (with multiple selection) would be enough.

Maybe i could acheive this by manipulating database?

RE: Adding a button to add multiple projects to user - Added by Ahmed A almost 13 years ago

+1

This is a sorely needed feature. I am very surprised that few people are asking for it; does it mean that most Redmine installations are only dealing with a few projects...?

RE: Adding a button to add multiple projects to user - Added by Margit Hinderer almost 13 years ago

It is absolutely useful! Most users only watch this forum without being registered and thus cannot take part in the discussion.
Hope that someone will write such a plugin!

RE: Adding a button to add multiple projects to user - Added by Stephen Grant almost 13 years ago

+1

We have about 40 current projects. We are evolving our production process and I have just created two new groups of people with specific sets of permissions. I have to add each of them explicitly to each project. It would be so useful for me to be able to go the other way and simply list the 40 projects (or whatever smaller subset I choose) to each group.

RE: Adding a button to add multiple projects to user - Added by Pavel Potcheptsov almost 10 years ago

+1
This is must have feature in
Administration - Users - Some_User - Projects Tab - Add button "Add to all/active projects"

    (1-9/9)