New Issue Notification

Topics: General
Dec 5, 2012 at 1:08 AM


I would like to receive an e-mail notification when a new issue is created--either using the web site or by sending an e-mail to the monitored POP3 account. Is there a way to do this? It seems that notifications are set up to notify only on update.

Thank you,

Dec 5, 2012 at 3:08 PM

I'm actually spending a lot of time on this. I see that I get a notification if a new issue is created on the Web, but if it is submitted by e-mail then I don't get the notification. I assume that this is because IssueManager.cs has a "if(HttpContext.Current != null)" section in its SaveOrUpdate function, and the HttpContext is null when issues are created by e-mail.

I wonder if it makes sense to at least send the new assignee a notification when a new issue is created by e-mail (I think it does!). If that's the case, I wonder if I can just move the code in the entity.SendNewAssigneeNotification block from within the SaveOrUpdate method so that it runs when HttpContext is null. That way the new assignee would always get notified...

I would like author feedback here but I will try it out and will try to report back with my findings. Thanks.

Dec 5, 2012 at 3:37 PM

My approach didn't work. :(

Has anyone else run into this and do you have a solution?

Dec 5, 2012 at 5:04 PM

I added that when I re-wrote the mailbox handler due to the fact that it would not work from the mailbox reader email.  This would need to be handled differently due to how the email template is generated and the need for a http context in most places.

Dec 5, 2012 at 7:26 PM


Sure--but I would be okay (at least for now) just sending a hardcoded message (or one that doesn't need access to any httpContext values) to the assignee. Do you think doing that in IssueManager's SaveOrUpdate() function is the best place?