Task reminder to team members?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • rfrancocantero
    Member
    • May 2020
    • 69

    Task reminder to team members?

    Hi,

    How can I achieve that task reminders are sent to team members instead of the assigned user?
    (Preferably I would like to NOT sent a task reminder to the assigned user).

    Use case:
    Assigned user creates a task and assigns it to a team and the team members get to work on the task.
  • Kharg
    Senior Member
    • Jun 2021
    • 410

    #2


    and a hook/workflow that assign the task to the whole team if a checkbox is checked.

    Comment

    • rfrancocantero
      Member
      • May 2020
      • 69

      #3
      Thanks, but not exactly what I was looking for. This solution makes it possible to have multiple ASSIGNED USERS. So basically the ASSIGNED USERS will receive a reminder.
      I would like to keep the ASSIGNED USER to just one person. The backoffice TEAM should only receive the reminder(s). Can this be achieved?

      Comment

      • Kharg
        Senior Member
        • Jun 2021
        • 410

        #4
        It can still be achieved using advanced pack to retrieve the members of the team and then you can create reminders or send emails in your flow, but it would be more complicated to create.

        Comment

        • rabii
          Active Community Member
          • Jun 2016
          • 1250

          #5
          You can still use formula in task to create task reminder for the members of teams assigned toa task, here is a code i have used in the past and it work (you need to adjust the number 600 seconds to your preference 600 is 10 minutes) you can only use the seconds unit.

          PHP Code:
          if (entity\isNew() && array\length(teamsIds) > 0) {
            
             $i = 0;
            
              while ($i < array\length(teamsIds)) {
                  
                  $count = record\count('TeamUser', 'teamId=', array\at(teamsIds, $i));
                  
                  $usersIds = record\findRelatedMany('Team', array\at(teamsIds, $i), 'users', $count);
                  
                  $y = 0;
                  
                  while ($y < array\length($usersIds)) {
                      
                      record\create(
                          'Reminder',
                          'entityId', id,
                          'entityType', 'Task',
                          'type', 'Popup', // You can choose a popup or email as a mean to show reminder
                          'userId', array\at($usersIds, $i),
                          'startAt', dateStart,
                          'seconds', 600, // specifiy in seconds how many minutes to send the reminder before startdate of the tak.
                          'remindAt', datetime\addMinutes(dateStart, -(600/60)) // also specify in second how many seconds to calculate the remind at
                      );
                      
                      $y = $y + 1;
                  }
                
                 $i = $i + 1;
              }
          }

          I have added entity\isNew() so that the system doesn't keep creating reminder tasks anytime a task changed.

          I hope this help
          Rabii
          Web Dev

          Comment

          Working...