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.




Auto-Assigning Users

web-app

I've been asked by my customers if it is possible to have Gemini 'Auto-Assign' users when entering an issue. There are two possibilities that I would like to do:

1. At the simpliest, to automatically be able to specify a user to assign a task to whenever an issue is created; i.e. when a user does a Create Issue, the Assigned To: field would already be filled in with a specific user.

What would be even better, however:

2. Auto-assign a specific user based upon what issue type is selected. In other words, if a user selects issue 'BUG' it would automatically fill in the assigned to for user 'X', if issue type is 'ENHANCEMENT' it is assigned (filled in) to user 'Y', etc etc etc.

Bottom line is that they would like it to autoassign so they don't have to pick a user (unless they want it changed). Is either of these possible? Thanks in advance.

Chimp (Tom)

SimpTheChimp
· 1
SimpTheChimp
Replies (9)
helpful
0
not helpful

You could amend the cteate issue stored procedure to auto assign a resource (if none specified).


Saar Cohen
· 5000
Saar Cohen
helpful
0
not helpful

Hmm... OK, what if I tried this? (1) Add an additional column onto the Issue Type table, something like AutoUser, which would contain the ID/key of the user to autoassign. (2) In the Create Issue stored proc, I check to see if no resource was specified - if so, then I retrieve this AutoUser value (based upon the issue type) and then assign that user to the issue.

Of course, I would have to save this proc, and everytime that CounterSoft updated Gemini I would have to re-add the code, but I suppose I could do that.

BTW, this could be a very useful feature to add to Gemini in the future.

Anyway, do you think this would work?

Tom


SimpTheChimp
· 1
SimpTheChimp
helpful
0
not helpful

Yes, that is exactly what we have said.

I know there is another customer who posted similar solution here.


Saar Cohen
· 5000
Saar Cohen
helpful
0
not helpful

Cool, and I did try it and it did work.... HOWEVER, the one thing that is lacking is that, once I auto-assign the user (resource) to a newly created issue in the proc, there seems to be no way of getting that user a 'created' email. I.E. They are assigned to the project, but are not getting a created/assigned email so they have no way of knowing that they have been assigned to the issue until they actually go into Gemini and pull up 'My Work'.

Is there any way, in the proc, to 'force' an email to be sent? Or some other means? Thanks in advance.

Tom


SimpTheChimp
· 1
SimpTheChimp
helpful
0
not helpful

You can amend the mail plugin code.


Saar Cohen
· 5000
Saar Cohen
helpful
0
not helpful

OK, so where is this email plugin code? And how can I 'amend' it? Is it not .NET code and I have no access to that?

Tom (Chimp)


SimpTheChimp
· 1
SimpTheChimp
helpful
0
not helpful

OK, one thing I do see is that I can write a 'plugin' so that I can do things whenever a Create Issue is done (I'm a VB.NET programmer). Therefore, in my plugin, how can I (1) Get the data from the issue just created, and (2) Based on that, can I 'send' an email at that time? If so, which interface/reference do I use? Thanks.

Tom (Chimp)


SimpTheChimp
· 1
SimpTheChimp
helpful
0
not helpful

The code for the mail plugin is in the Code Samples directory of the Gemini zip you have downloaded.

You get the issue data passed into the event.


Saar Cohen
· 5000
Saar Cohen
helpful
0
not helpful

This would be a great feature to have for a future release. I too have asked about this. Here is a description of the solution that I came up with.

First, I created a new table in the Gemini database to hold the values for a Custom Field. Here are the field names I used: DetailID,DetailDescription, SortOrder, compid, AssignToUserID

The AssignToUserID field maps to Users.userid.

I created a VB.NET application that is scheduled to run every 15 minutes. This application returns all unassigned tasks and makes a call to the Gemini Web Services to assign the appropriate User.userid to the task with this methodl "GeminiWS.UpdateIssue".

By using the Web Service method, Gemini automatically takes care of sending out the e-mails when a task is assigned to the appropriate user.

This solution also allowed me to avoid modifying any existing Gemini tables and stored procedures so I do not need to worry about future upgrade issues.

The VB.NET code was actually very simple; less then 10 lines of code.


bostonnole
· 1
bostonnole