yyuu / redmine_watcher_groups

Select issue watchers by groups.
MIT License
5 stars 6 forks source link

redmine watcher roles #2

Open jrencz opened 11 years ago

jrencz commented 11 years ago

Hi,

can you implement selecting by role in project instead of by group in whole redmine? Or both by role and group.

Another thing: and/or switch (for groups only as well as for groups and roles)

Let's say: Users 1 and 2 are in group A User 3 is in group B

Users 1,2 have role r1 Users 2,3 have role r2

If I check Group: A Role: r2

i should get only user 2 if mode is "and" and users 1,2,3 if mode is "or"

yyuu commented 11 years ago

I read that you have 2 feature requests.

  1. Support project roles
    • Supporting roles is quite easy, but I didn't do that. I have no idea to show a label whether it is a group or a role. If there's idea, I can do that soon.
  2. and/or switching of groups/roles
    • Sounds interesting. But current impl is too dumb to act like so; it's just (de)?selecting watcher checkboxes by the state of the group checkbox. I'll try to implement this in JavaScript.
jrencz commented 11 years ago

if there's access to user role in user object while building a list of proposed watcher users You can add data-role-ids attribute containing comma-separated roles or maybe json-object of role ids and then manage switching with javascript. Then you should also change the way groups work now: print user groups in an attribute (let's say data-groups, comma separated groups or object) rather than printing users ids in group. Then it will be possible to manage both roles and groups.

I hope I made myself clear enough