CounterSoft Community Server

Welcome to CounterSoft Community Server Sign in | Join | Help
Home Forums

Email alerts always sended

Last post 07-02-2008, 10:52 PM by SaarCohen. 7 replies.
Sort Posts:
  •  07-01-2008, 10:08 AM

    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.


    I'm this: .
  •  07-01-2008, 11:05 AM

    Re: Email alerts always sended

    Please make sure that you are not watching issues.
  •  07-01-2008, 11:10 AM

    Re: Email alerts always sended

    yes, I'm sure
    I'm this: .
  •  07-01-2008, 7:19 PM

    Re: Email alerts always sended

    So you have no issues another "My Watched Issues"? What alerts are you receiving?
  •  07-02-2008, 8:45 AM

    Re: Email alerts always sended

    1) no issue on watched

    2) assigned resource


    I'm this: .
  •  07-02-2008, 8:57 AM

    Re: Email alerts always sended

    Is it you who is the assigned resource? do you have auto alert for issue resource on?
  •  07-02-2008, 9:06 AM

    Re: Email alerts always sended

    1) no

    2) yes


    I'm this: .
  •  07-02-2008, 10:52 PM

    Re: Email alerts always sended

    Ok, thanks got it now.

    Please run the following sql to update a strored procedure to fix the issue:

    /*************************************************************

    * gemini_getusersforissuealert

    *************************************************************/

    IF EXISTS(SELECT name FROM sysobjects WHERE name='gemini_getusersforissuealert')

    DROP PROCEDURE gemini_getusersforissuealert

    go

    CREATE PROCEDURE gemini_getusersforissuealert

    @projectid NUMERIC(10,0),

    @issueid NUMERIC(10,0)

    as

    begin

    -- issue watchers

    SELECT userid,1024 AS watchcode

    into #temp1

    FROM gemini_watchissues WHERE projectid=@projectid AND issueid=@issueid

    AND userid not in (SELECT userid FROM gemini_usersettings WHERE sname=N'ReceiveEmailAlerts' AND svalue=N'N')

    -- project watchers

    SELECT userid,watchcode

    into #temp2

    FROM gemini_watchproject WHERE projectid=@projectid AND userid not in (SELECT userid FROM #temp1)

    AND userid not in (SELECT userid FROM gemini_usersettings WHERE sname=N'ReceiveEmailAlerts' AND svalue=N'N')

    SELECT a.userid,a.watchcode,b.emailaddress

    into #temp3

    FROM #temp1 a, gemini_users b WHERE a.userid=b.userid

    UNION ALL

    SELECT a.userid,a.watchcode,b.emailaddress FROM #temp2 a, gemini_users 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 gemini_usersettings WHERE sname=N'EmailFormat') b on b.userid=a.userid

    LEFT OUTER JOIN (SELECT userid,svalue FROM gemini_usersettings WHERE sname=N'EmailMyChanges') c on c.userid=a.userid

    end

    go

View as RSS news feed in XML