There is a task to add an event (sending SMS) with the priority of the task immediately.

Eliminated to /redmine/app/models/mailer.rb

I see this

:subject => "[#{issue.project.name} - #{issue.tracker.name} ##{issue.id}] (#{issue.status.name}) #{issue.subject}" 

those. should isssue have a method issue.priority? and if it is immediate, then run a third-party script with parameters

he himself is not strong

I try

 if issue.priority? == "Нормальный" system("php /var/www/redmine/app/models/run.php") end 

getting

NoMethodError (undefined method `priority? 'For #):

version 2.5.2.stable

    1 answer 1

     # Builds a mail for notifying to_users and cc_users about a new issue def issue_add(issue, to_users, cc_users) redmine_headers 'Project' => issue.project.identifier, 'Issue-Id' => issue.id, 'Issue-Author' => issue.author.login redmine_headers 'Issue-Assignee' => issue.assigned_to.login if issue.assigned_to message_id issue references issue @author = issue.author @issue = issue @users = to_users + cc_users @issue_url = url_for(:controller => 'issues', :action => 'show', :id => issue) mail :to => to_users.map(&:mail), :cc => cc_users.map(&:mail), :subject => "[#{issue.project.name} - #{issue.tracker.name} ##{issue.id}] (#{issue.status.name}) #{issue.subject}" if issue.priority.name == "Нормальный" system("php /var/www/redmine/app/models/run.php #{issue.id}") end end 

    Normal is the name from the enumerations table.