-
Notifications
You must be signed in to change notification settings - Fork 36
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot set watcher for more than 21 default members #31
Comments
Thank you for contributing to Redmine Issue Templates plugin!' first issue |
Hi, @Araki-Tokyo Now I am not the maintainer, but this feature has been added at akiko-pusu#302. The part where the watcher is selected is implemented using Redmine's native helper method. redmine_issue_templates/app/controllers/concerns/issue_templates_common.rb Lines 110 to 118 in aea59f3
So, as you can see from the method on the Redmine side, a limit of 21 names is set. ( # Returns an array of users that are proposed as watchers
# on the new issue form
def users_for_new_issue_watchers(issue)
users = issue.watcher_users.select{|u| u.status == User::STATUS_ACTIVE}
assignable_watchers = issue.project.principals.assignable_watchers.limit(21)
if assignable_watchers.size <= 20
users += assignable_watchers.sort
end
users.uniq
end SuggestionA. If you think this experimental feature is useful (built-in fields / custom fields select), you can apply this helper method and set up your own method in the Issue Template. B. Alternatively, you can submit a request to the Redmine repository itself to be able to retrieve all watcher lists, or a list with a user-specified limit. Personally, I think proposal B is the way to go. Also, I didn't get much feedback on this experimental feature when I added it, so this feature may be discontinued in the future in favor of stability and maintainability. |
Hi, Thanks for the useful information! I tried above Suggestion - A way on PR #33, and it seems to work as I expected. 😄 (Related comments are other PR #32 side.) Thanks! |
If there are 20 or less project members, you can use the ticket template to set up watcher as the default member.
However, if there are more than 21 project members, the "Select Field" list value will not be displayed at all, and watcher settings will not be possible.
I would like to be able to set watchers as default members even if there are more than 21 project members.
Could some of you please make this happen?
The text was updated successfully, but these errors were encountered: