summaryrefslogtreecommitdiff
path: root/app/observers/issue_observer.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/observers/issue_observer.rb')
-rw-r--r--app/observers/issue_observer.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/app/observers/issue_observer.rb b/app/observers/issue_observer.rb
index 1575cf0f19f..6ef13eb5d5e 100644
--- a/app/observers/issue_observer.rb
+++ b/app/observers/issue_observer.rb
@@ -19,6 +19,7 @@ class IssueObserver < BaseObserver
def after_update(issue)
if issue.is_being_reassigned?
notification.reassigned_issue(issue, current_user)
+ create_assignee_note(issue)
end
issue.notice_added_references(issue.project, current_user)
@@ -32,6 +33,10 @@ class IssueObserver < BaseObserver
Note.create_status_change_note(issue, issue.project, current_user, issue.state, current_commit)
end
+ def create_assignee_note(issue)
+ Note.create_assignee_change_note(issue, issue.project, current_user, issue.assignee)
+ end
+
def execute_hooks(issue)
issue.project.execute_hooks(issue.to_hook_data, :issue_hooks)
end