module RedmineMattermost::IssuePatch::InstanceMethods

Public Instance Methods

create_from_issue() click to toggle source
# File lib/redmine_mattermost/issue_patch.rb, line 18
def create_from_issue
  @create_already_fired = true
  Redmine::Hook.call_hook(:redmine_mattermost_issues_new_after_save, { :issue => self})
  return true
end
save_from_issue() click to toggle source
# File lib/redmine_mattermost/issue_patch.rb, line 24
def save_from_issue
  if not @create_already_fired
    Redmine::Hook.call_hook(:redmine_mattermost_issues_edit_after_save, { :issue => self, :journal => self.current_journal}) unless self.current_journal.nil?
  end
  return true
end