Make auto-assign safe: after commit, workflow-aware, with history

- Runs after the time entry is committed, on a fresh copy of the issue:
  a problem updating the issue no longer rolls back the logged time or
  interferes with the issue edit form saving the same issue
- Only assigns the time logger when they can be assigned in the project
- Only changes status when the workflow allows it for that user
  (checked after assigning, since assignee rules can allow more)
- Records the change in the issue history under the time logger, with
  a short note, so watchers see it
- Settings for the starting and target statuses; defaults are each
  tracker's default status and a status named "In Progress", so
  renaming "New" no longer breaks it
- Update failures are logged instead of raised; declares Redmine 6.1+

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01BiwYMjhoQvL7XsKKfRz4pM
This commit is contained in:
Claude committed 2026-10-28 23:32:20 -04:00
1 parent fd66d8c169
commit af3a769a6b
5 files changed
+100 -20

No files matched your search

+5
View File
@@ -18,6 +18,11 @@ Redmine::Plugin.register :redmine_auto_assign do
version '2026.3.0'
url 'https://github.com/rickbarrette/redmine_auto_assign'
author_url 'https://barrettefabrication.com'
requires_redmine version_or_higher: '6.1.0'
# Blank settings: start from each tracker's default status, move to a status named "In Progress"
settings default: { 'starting_status_id' => '', 'in_progress_status_id' => '' },
partial: 'settings/auto_assign_settings'
end
AutoAssign.setup