Defect #16058

Watcher is not getting email notification when an issue has been updated

Added by Shashank K over 3 years ago. Updated about 3 years ago.

Status:Needs feedbackStart date:
Priority:NormalDue date:
Assignee:-% Done:

0%

Category:Email notifications
Target version:-
Resolution: Affected version:2.4.1

Description

User1 created an issue and assigned it to User2 and added User3 as Watcher

User3 is getting mail notification when the issue is created but not getting notified when the same issue is updated.

User3 has the notification setting as Only for things I watch or I'm Involved in

Please help me out.

The details of redmine I'm using is as follows

Environment:
Redmine version 2.4.1.stable
Ruby version 1.9.3-p484 (2013-11-22) [i686-linux]
Rails version 3.2.16
Environment production
Database adapter Mysql2
SCM:
Subversion 1.8.4
Git 1.8.3

setting.png (13.8 KB) Toshi MARUYAMA, 2014-03-04 05:31

settingsreporter.png (11 KB) Shashank K, 2014-03-04 05:45

Untitled.png (16.1 KB) Hoc NV, 2014-07-07 04:54

Untitled.png (11 KB) Hoc NV, 2014-07-07 04:58

preference.png (5.94 KB) Toshi MARUYAMA, 2014-07-07 05:28

Untitled.png (18.3 KB) Hoc NV, 2014-07-07 15:24

user02.png (13.2 KB) Hoc NV, 2014-07-07 16:37

Issuesvisibility.png (22.1 KB) Toshi MARUYAMA, 2014-08-05 03:27

History

#1 Updated by Toshi MARUYAMA over 3 years ago

  • File setting.png added
  • Status changed from New to Needs feedback
  • Priority changed from Urgent to Normal

Check your setting.

#2 Updated by Shashank K over 3 years ago

I've checked settings. t looks fine. Please check attached screen shot.

#3 Updated by Hoc NV over 3 years ago

I also have same errors. User3 doesnt receive any notification when User1 create issue also update issue

Anybody help me resolved it.

#4 Updated by Toshi MARUYAMA over 3 years ago

Do you use plugins?

#5 Updated by Hoc NV over 3 years ago

i dont use plugin. I must install plugin rite?

#6 Updated by Toshi MARUYAMA over 3 years ago

Hoc NV wrote:

i dont use plugin. I must install plugin rite?

No.
Your problem is not same with Shashank's description.

Shashank, do you use plugins?

#7 Updated by Shashank K over 3 years ago

Toshi MARUYAMA, I don't use any plugins for watcher

#8 Updated by Hoc NV over 3 years ago

how about my problem MARUYAMA? Pls help me resolve it.

#9 Updated by Toshi MARUYAMA over 3 years ago

comment out "config.action_mailer.logger" line of config/environments/production.rb
and check log/production.log.

   # No email in production log
   #config.action_mailer.logger = nil

#10 Updated by Hoc NV over 3 years ago

Hi Toshi MARUYAMA,
I remove comment on it:

 # No email in production log
  config.action_mailer.logger = nil

but still errors.

I describe again:

Admin create new project, and add member user1 to that project.
then admin create one issue and assign to user1.

now, admin add user2 as a watcher to issue. But when user1 update or modify, user2 don't any mail notification.

User2 is not belong to member of that project. User2 is a watcher.

Pls help me to resolve.

Thanks.

#11 Updated by Toshi MARUYAMA over 3 years ago

Hoc NV wrote:

Hi Toshi MARUYAMA,
I remove comment on it:

No. Add comment at "config.action_mailer.logger = nil" line.
Then you get log in log/production.log.

  Rendered mailer/_issue.text.erb (4.2ms)
  Rendered mailer/issue_edit.text.erb within layouts/mailer (4.8ms)
  Rendered mailer/_issue.html.erb (0.8ms)
  Rendered mailer/issue_edit.html.erb within layouts/mailer (2.4ms)

Sent email "[hg-crew-00 - Bug #74] Google Chrome 36" (12ms)
  bcc: admin@example.net, test00@exapmle.com
  Rendered mailer/_issue.text.erb (0.9ms)
  Rendered mailer/issue_edit.text.erb within layouts/mailer (1.6ms)
  Rendered mailer/_issue.html.erb (1.2ms)
  Rendered mailer/issue_edit.html.erb within layouts/mailer (2.8ms)

Sent email "[hg-crew-00 - Bug #74] Google Chrome 36" (11ms)
  bcc: test02@example.com

#12 Updated by Hoc NV over 3 years ago

Oh, still send mail notification to watcher:

Completed 200 OK in 276.7ms (Views: 210.8ms | ActiveRecord: 15.6ms)
Started PUT "/issues/39" for 183.91.7.251 at Mon Jul 07 09:15:54 +0700 2014
Processing by IssuesController#update as HTML
  Parameters: {"time_entry"=>{"comments"=>"", "activity_id"=>"", "hours"=>""}, "commit"=>"Submit", "last_journal_id"=>"58", "authenticity_token"=>"hkSIso159d6IJLiViqJRREnjQPhvw3NAIfxOklDgSPU=", "utf8"=>"â", "id"=>"39", "issue"=>{"start_date"=>"2014-07-04", "estimated_hours"=>"", "priority_id"=>"2", "parent_issue_id"=>"", "is_private"=>"0", "project_id"=>"25", "notes"=>"Test send mail to watcher now..................", "lock_version"=>"4", "subject"=>"Xá»­ lý lá»i send mail của redmine", "assigned_to_id"=>"3", "done_ratio"=>"0", "tracker_id"=>"2", "due_date"=>"2014-07-08", "private_notes"=>"0", "description"=>"Sá»­a lá»i send mail:\r\n1. Send mail notification cho watcher\r\n2. Xá»­ lý send mail công viá»c quá deadline", "status_id"=>"2"}}
  Current user: hocnv (id=3)
  Rendered mailer/_issue.text.erb (4.6ms)
  Rendered mailer/issue_edit.text.erb within layouts/mailer (5.2ms)
  Rendered mailer/_issue.html.erb (1.2ms)
  Rendered mailer/issue_edit.html.erb within layouts/mailer (2.1ms)

Sent email "[PrHocNV - Công viá»c #39] Xá»­ lý lá»i send mail của redmine" (3816ms)
  bcc: XXXXXXXX
Redirected to http://192.168.9.12/issues/39
Completed 302 Found in 4040.0ms (ActiveRecord: 15.9ms)
Started GET "/issues/39" for 183.91.7.251 at Mon Jul 07 09:15:59 +0700 2014
Processing by IssuesController#show as HTML
  Parameters: {"id"=>"39"}
  Current user: hocnv (id=3)

Herer user MP MP2010 is a watcher, but he dont receive any notification

I see in the log:

Send mail notification cho watcher\r\n2. Xá»­ lý send mail công viá»c quá deadline", "status_id"=>"2"}}
  Current user: hocnv (id=3)
  Rendered mailer/_issue.text.erb (4.6ms)

But watcher dont receive notification.

Only user1 receive mail.

#13 Updated by Hoc NV over 3 years ago

#14 Updated by Toshi MARUYAMA over 3 years ago

Check user preference setting.

#15 Updated by Hoc NV over 3 years ago

i just have configured also the same log as above i pasted.
:(

#16 Updated by Daniel Felix over 3 years ago

Well the both users need tho set their informations for email notifications. If the user has the option "no events" they won't get ANY notifications.

Please screen your redmine settings for notifications, and the settings for the two users. Maybe we could take a look at it, which would be better than digging in the dark. :-)

#17 Updated by Shashank K over 3 years ago

Hi Deniel, I've mentioned in description that all users have notification setting as '*Only for things I watch or I'm Involved in*'

#18 Updated by Hoc NV over 3 years ago

Yes, i also chosen "Only for things I watch or I'm Involved in".

But watcher doesn't receive any notification.

#19 Updated by Daniel Felix over 3 years ago

Hm just to be sure....

Is the project we were talking about public or does a user just see his own generated issues? In this case, this would be the correct behaviour!

#20 Updated by Hoc NV over 3 years ago

#21 Updated by Hoc NV over 3 years ago

I paste here:

Admin create new project, and add member user1 to that project.
then admin create one issue and assign to user1.

now, admin add user2 as a watcher to issue. But when user1 update or modify, user2 don't any mail notification.

User2 is not belong to member of that project. User2 is a watcher.

The project is only one User1 tobe is member, and it's not public project.

And i add user2 as watcher as under picture:

#22 Updated by Daniel Felix over 3 years ago

Yes... i know where you added the user....
But what is the role setting?

What is your value for the property "issue visibility" in the role which is assigned to the two users?

But wait... If you just have one member in the project... and only one user is member, I would guess that this single user gets the email and the added watcher which is not a member of the project won't get this mail. Is this right? This would be the intended behaviour. So this means, it won't be a bug, as it is intended.

#23 Updated by Hoc NV over 3 years ago

Here is role setting of user02 that i add as watcher:

And i don't know to set the property "issue visibility" where.

I only assigne to User01, and User01 is member of the project, User02 is not belong to member of this project.

Both user01, user02 have account login to redmine system.

#24 Updated by Hoc NV over 3 years ago

#25 Updated by Daniel Felix over 3 years ago

Well, as already stated. User02 isn't a project member and the project isn't public. This means, that he won't get a information message. This is the intended behaviour as far as i know.

#26 Updated by Hoc NV over 3 years ago

Oh, can you tell me i can find it where now?

Thanks Daniel,

#27 Updated by Daniel Felix over 3 years ago

Just two or three comments above.

Maybe you try to add the user to the project and retry. This should do it. Another way is to set the project public. But this way of configuration gives this experience. I'm not sure if this is a bug and if there is a good way to get around it.

But there is a plugin, maybe you want to try it. I'm not sure if this is compatible with 2.4.x and 2.5.x branch.
http://www.redmine.org/plugins/redmine_extended_watchers

Best regards,
Daniel

#28 Updated by Toshi MARUYAMA about 3 years ago

Hoc NV wrote:

And i don't know to set the property "issue visibility" where.

#29 Updated by rachel foucard about 3 years ago

Hello,

I think I have a similar problem and I'm sure I did not understand a setting :

On a project where I'm member (manager), on a task I'm a watcher, but not assigned user I don't get notification mail.
If I change the assigned user with me, I get the notification.
I'm a manager, and the issues visibility for this role is "All issues".
I did something wrong ?

Best regards,
Rachel.

#30 Updated by Michael Esemplare about 3 years ago

Hi Rachel,

What is your Email Notification Preferences set to in "My Account"?

Make sure it is at least set to "Only for things I watch or I'm Involved in".

Regards,
Mike

Also available in: Atom PDF