Email alerts always sended
I've set in my profile the "Receive email alerts" to No.
The emails are always sended.
PS I use the scheduler.
lomi
· 1 |
|
Tuesday, July 1, 2008, 11:08:51 AM |
0
|
Please make sure that you are not watching issues. |
||||
|
0
|
yes, I'm sure |
||||
|
0
|
So you have no issues another "My Watched Issues"? What alerts are you receiving? |
||||
|
0
|
1) no issue on watched 2) assigned resource |
||||
|
0
|
Is it you who is the assigned resource? do you have auto alert for issue resource on? |
||||
|
0
|
1) no 2) yes |
||||
|
0
|
Ok, thanks got it now. Please run the following sql to update a strored procedure to fix the issue: /******************* * geminigetusersforissuealert *********************************************************/ IF EXISTS(SELECT name FROM sysobjects WHERE name='geminigetusersforissuealert') DROP PROCEDURE geminigetusersforissuealert go CREATE PROCEDURE geminigetusersforissuealert @projectid NUMERIC(10,0), @issueid NUMERIC(10,0) as begin -- issue watchers SELECT userid,1024 AS watchcode into #temp1 FROM geminiwatchissues WHERE projectid=@projectid AND issueid=@issueid AND userid not in (SELECT userid FROM geminiusersettings WHERE sname=N'ReceiveEmailAlerts' AND svalue=N'N') -- project watchers SELECT userid,watchcode into #temp2 FROM geminiwatchproject WHERE projectid=@projectid AND userid not in (SELECT userid FROM #temp1) AND userid not in (SELECT userid FROM geminiusersettings WHERE sname=N'ReceiveEmailAlerts' AND svalue=N'N') SELECT a.userid,a.watchcode,b.emailaddress into #temp3 FROM #temp1 a, geminiusers b WHERE a.userid=b.userid UNION ALL SELECT a.userid,a.watchcode,b.emailaddress FROM #temp2 a, geminiusers b WHERE a.userid=b.userid SELECT a.userid,a.watchcode,a.emailaddress,ISNULL(b.svalue,N'H') AS emailformat,ISNULL(c.svalue,N'Y') AS emailmyself FROM #temp3 a LEFT OUTER JOIN (SELECT userid,svalue FROM geminiusersettings WHERE sname=N'EmailFormat') b on b.userid=a.userid LEFT OUTER JOIN (SELECT userid,svalue FROM geminiusersettings WHERE sname=N'EmailMyChanges') c on c.userid=a.userid end go |
||||
|