terentev-mn / watchers

Redmine add watchers
1 stars 0 forks source link

config #2

Open msamorukov opened 1 year ago

msamorukov commented 1 year ago

Thank you for plugin.

Is there a way to configure list of watchers to add automatically? Specifically, add only users but not groups?

terentev-mn commented 1 year ago

Hi! It's possible, but why? the list of users can be huge, wouldn't it be better to use groups.

Maybe I misunderstood, I need details or an example

msamorukov commented 1 year ago

Our case,

Issue initially assigned to group, eg "Java support team". Everybody from this team are notified about new issue and then somebody from group re-assign issue to self. But group now in watchers list.

I would like to auto-watch feature only for individuals, not groups.

I agree, this is specific case, but generally I would some filtering functionality -- eg, do not auto-add user/group to watchers by some mask, like "*support team".

Could you advise, if I comment lines 13-16 here: https://github.com/terentev-mn/watchers/blob/main/lib/tw_watchers.rb would it will be enough for my purposes?

Thank you!

terentev-mn commented 1 year ago

Do you mean put in plugin options checkbox:

msamorukov commented 1 year ago

Yes, this would be great.

Either checkboxes auto-assign creator/users/groups, and/or filters -- auto assign users/groups who match/does not match mask.

terentev-mn commented 1 year ago

Done, please check it. By the way, I using ldap auth (freipa) and I have no users, I see only groups and myself in watchers list. But when I tested plugin I used internal auth and there I saw all users and groups.. Its very strange behavior..

Anyway, i hope i helped you.

msamorukov commented 1 year ago

In this versions, the same behavior. When issue created and initially assigned to group, this group auto-added to watchers list. When issue re-assigned, nothing happen.

May be I do not understand meaning of new checkboxes...