Gemini Community Support Site

This Gemini community support site can be used to find solutions to product issues. You can log in using Open Id, Google Profile and even Facebook. Feel free to ask a question or browse FAQs and documentation. Product tour videos are also available along with how-to videos demonstrating key Gemini capabilities.




Notifications sent regardless of visibility

web-app

I have a Customer Issue Admin group that I created that does not have access to view Private issues.  When someone from a different group that has access to private issues submits a new private issue, the users in the Customer Issue Admin group still get an email with the details of the new private issue.

How can I set it up so that users from the Customer Issue Admin group only get notified of public issues?  These are the current settings for the group: Create Issue, Create Issue Comment, Update Issue Progress, View Project

Underwhelmed
· 1
Underwhelmed
Replies (6)
helpful
0
not helpful

Which version of Gemini are you using?

This was an issue but is fixed in 2.0.5.


Saar Cohen
· 5000
Saar Cohen
helpful
0
not helpful

I am using 2.0.5.  What settings need to be set in order to get this working


Underwhelmed
· 1
Underwhelmed
helpful
0
not helpful

There is not special setting. The mail plugin has been amended to cater for this. Can you check the mail plugin code (under the Code Samples folder of your Gemini zip file).


Mark Wing
· 9108
Mark Wing
helpful
0
not helpful

Okay, I've found the code, now, do I make changes to this code and upload the .dll or is there something in there that I am looking for specifically?


Underwhelmed
· 1
Underwhelmed
helpful
0
not helpful

Nevermind, I figured out a better way to do it:

I altered the geminigetusersforissuealert stored procedure to account for users that are not in a role that allow them to view Private Issues:

ALTER PROCEDURE [dbo].[geminigetusersforissuealert]
 @projid NUMERIC(10,0),
 @issueid NUMERIC(10,0)
AS
BEGIN
 -- issue watchers
 SELECT userid,1024 AS watchcode
 INTO #temp1
 FROM watchissue WHERE projid=@projid AND issueid=@issueid
 AND userid NOT IN (SELECT userid FROM usersettings WHERE sname=N'receivealerts' AND svalue=N'N')

 -- project watchers
 SELECT  watchproject.userid, watchproject.watchcode
 INTO #temp2
 FROM    securityschemes
 INNER JOIN userroles
  ON securityschemes.schemeid = userroles.schemeid
 INNER JOIN watchproject
  ON userroles.projid = watchproject.projid
  AND userroles.userid = watchproject.userid
 WHERE watchproject.projid = @projid
 AND watchproject.userid NOT IN (SELECT userid FROM #temp1)
 AND watchproject.userid NOT IN (SELECT  userid FROM usersettings WHERE sname = N'receive
alerts' AND svalue = N'N')
 AND (
   (SELECT isprivate FROM issues WHERE issueid = @issueid) = 0
  OR
   securityschemes.roles LIKE '%H%'
 )
 
 /
 --This is the old code
 select userid,watchcode
 into #temp2
 from watchproject where projid=@projid and userid not in (select userid from #temp1)
 and userid not in (select userid from usersettings where sname=N'receive_alerts' and svalue=N'N')
 
/
 
 SELECT a.userid,a.watchcode,b.emailaddress
 INTO #temp3
 FROM #temp1 a, users b WHERE a.userid=b.userid
 UNION ALL
 SELECT a.userid,a.watchcode,b.emailaddress FROM #temp2 a, 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 usersettings WHERE sname=N'emailformat') b ON b.userid=a.userid
  LEFT OUTER JOIN (SELECT userid,svalue FROM usersettings WHERE sname=N'email
myself') c ON c.userid=a.userid
END


Underwhelmed
· 1
Underwhelmed
helpful
0
not helpful

Ok, thanks for sharing this.


Mark Wing
· 9108
Mark Wing