Author Topic: Assigning tasks to a company  (Read 1759 times)

sblackford

  • Newbie
  • *
  • Posts: 2
    • View Profile
Assigning tasks to a company
« on: January 25, 2011, 07:25:02 pm »
This doesn't seem to send an email to anyone when someone assigns a task to a company. Is there a way to set up an email address so that when someone assigns a task to a company/department, then someone will receive an email?

There is an email field under the company config screen, but it doesn't appear to actually get sent there when a task is assigned.

sblackford

  • Newbie
  • *
  • Posts: 2
    • View Profile
Re: Assigning tasks to a company
« Reply #1 on: January 26, 2011, 02:00:20 pm »
How about HIDING the actual Company Name when assigning the task? Any way to do this?

This way a USER could be created called the COMPANY NAME and could be associated with a SECONDARY email address.

This would get rid of the confusion of showing TWO similar options for users to assign tasks too.


Markus

  • Jr. Member
  • **
  • Posts: 72
    • View Profile
Re: Assigning tasks to a company
« Reply #2 on: January 27, 2011, 12:20:02 pm »
Hi sblackford,

marking a company do you get a checkbox to choose whether you want to send an email for notification of assigning? I dont.
I only get a checkbox for users. I checked carefully user/company rights to run a proper scenario .. but choosing a company I cant send notification.

I too would prefer to hide the rows of companies and only choosing out of a list of users.

Checking the code I found the routine to create the list of assignees:

ROOT\public\assets\javascript\og\tasks\addTask.js:ogTasks.buildAssignedToComboStore
line 491-513

I deactivated two lines:

Code: [Select]
ogTasks.buildAssignedToComboStore = function(companies) {
usersStore = [];
comp_array = [];
cantU = 0;
cantC = 1;

comp_array[cantC++] = ['0:0', lang('dont assign')];
// comp_array[cantC++] = ['0:0', '--'];
usersStore[cantU++] = ['0:0', '--'];

if (companies) {
for (i=0; i<companies.length; i++) {
comp = companies[i];
// comp_array[cantC++] = [comp.id + ':0', comp.name];
for (j=0; j<comp.users.length; j++) {
usr = comp.users[j];
usersStore[cantU++] = [comp.id + ':' + usr.id, usr.name];
if (usr.isCurrent) comp_array[0] = [comp.id + ':' + usr.id, lang('me')];
}
}
}
usersStore = comp_array.concat(usersStore);
return usersStore;
}

cheers
markus