Feature #8795

Notification on new issue creation (to get ticket number) but not changes that I make myself

Added by Nicolas Kopp over 11 years ago. Updated over 11 years ago.

Status:NewStart date:2011-07-12
Priority:NormalDue date:
Assignee:-% Done:

0%

Category:Email notifications
Target version:-
Resolution:

Description

Title pretty much says it all. If hope this is not a dublicate of http://www.redmine.org/issues/8241

Scenario:
  • Someone opens up a new issue via mail
  • Redmine parses E-Mail and sends notification mail to the creator. This Mail contents a ticket number. The ticket-number is neccesary to properly update the ticket via mail, otherwise (without the number) a new issue would be created.
  • If I upate the issue via mail I don't want to be notified about the changes I made.

Basically the "I don't want to be notified of changes that I make myself" option does that, except that no mail is sent when I CREATE an issue (that counts as a change) and I get no ticket number.

History

#1 Updated by Nicolas Kopp over 11 years ago

found the piece of code, I think:

app/models/mailer.rb, line 360ff:

if @author.pref[:no_self_notified]
recipients.delete(@author.mail) if recipients
cc.delete(@author.mail) if cc
end

Now i need to know how to change that like

if @author.pref[:no_self_notified]
if issue_in_question! = just_created
recipients.delete(@author.mail) if recipients
cc.delete(@author.mail) if cc
end
end

Any ideas?

Also available in: Atom PDF