Project

General

Profile

plugin to assign issues to groups

Added by Davide Galletti about 13 years ago

Hi all,

I am writing a plugin to allow an issue to be assigned to groups; I exploit the fact
that a group is stored in the user db table with type equal to "Group". Hence I just
change things so that the list of assignable users in the drop down list when you create or update an issue, includes also all the groups that have a role in the project.
In practice I have overridden the assignable_users method of the Project class
so that it yelds member_principals.
The plugin seems to work just fine; but my understanding of relationships connecting
different models is not so deep; so I might be missing some reasons why I should not
use member_principals ... Do you remine gurus think it makes sense to use that
relationships? Is there a place where relationships and their intended use are
documented?

Many thanks,

Davide


Replies (12)

RE: plugin to assign issues to groups - Added by whoiam whoiam almost 13 years ago

Hi Davude,

Can you share us your plugin?

Thanks,
Who

RE: plugin to assign issues to groups - Added by whoiam whoiam almost 13 years ago

Thanks you Terence Mill but the link shows the patch file not plugin. Please see the different between patch file and a plugin at [[http://www.intellispire.com/blog/2010/04/what-is-a-butterfly-software-plugin-the-difference-between-a-patch-and-a-plugin/]]

RE: plugin to assign issues to groups - Added by whoiam whoiam almost 13 years ago

Do you have any suggests to modify the patch at #2964 so that it can become a plugin?

RE: plugin to assign issues to groups - Added by Ever Rich almost 13 years ago

I really need a plugin assign issues to groups.
The patch file is so cool but will be interesting if it is a plugin (more convenient for upgrade redmine version).

Anyone can help ?
Thanks in advance :)

RE: plugin to assign issues to groups - Added by Davide Galletti almost 13 years ago

the customer I wrote the plugin for, has not given the permission to release it yet; furthermore the plugin has also other features so I would have to split the part relevant to the groups assignment.
I am willing to do it as soon as I get the permission.
When I wrote the plugin I had not found the issue above mentioned by Terence; although pretty similar, Eric's implementation is cleaner; if you have some plugin writing experience it shouldn't be much work transforming the patch into a plugin.
Cheers,
Davide

RE: plugin to assign issues to groups - Added by Ever Rich almost 13 years ago

I really happy when i hear you (Davide Galletti) will do the plugin asap.
I'm not a developer, so i will use the patch file first and waiting for the plugin from you ;)

Thanks and cheers.

RE: plugin to assign issues to groups - Added by Ever Rich almost 13 years ago

davide musella Galletti: could you tell me when will the plugin release? Or could you share something to help me build a plugin "assign issues to groups"?

RE: plugin to assign issues to groups - Added by Davide Galletti over 12 years ago

Sorry for the late reply; I am working on it; as I am basically rewriting it using patch at #2964 I shouldn't need any customer permission

RE: plugin to assign issues to groups - Added by Andrea Saccavini over 12 years ago

+1
We are waiting for your plugin!!!

RE: plugin to assign issues to groups - Added by Etienne Massip over 12 years ago

RM 1.3.0 will support assigning issues to groups, see #2964.

RE: plugin to assign issues to groups - Added by Sergey Enns about 12 years ago

Good news!
But I have a question. Is it possible include tasks in filter results for users assigned groups.
E.g. user User1 include in group Grp1. When make filter by User1 I see tasks assigned on User1 but don't see tasks assigned on Grp1.

    (1-12/12)