role's issue

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ksv
    Member
    • Jul 2020
    • 59

    role's issue

    Could you please tell me how to solve the following issue?
    There is a group that contain manager, junior manager and several salesmen.
    Manager and junior manager have the same role and can assigh tasks to another users in this group.
    If a manager has assigned a task to a junior manager, then a junior manager can delete the group and themanager stops seeing the task and his subscription disappears.
    How to make the creator always see the task in the task pool, even if the group is deleted?

    Last edited by ksv; 08-27-2020, 04:49 PM.
  • emillod
    Active Community Member
    • Apr 2017
    • 1405

    #2
    I think you should use teams.
    You need to create three different roles and propper amount of teams.
    Then assign manager only to one group, and in role settings let him see only tasks which are related only to his team(s).

    I didn't test that but it also should work with subscriptions.

    Comment

    • ksv
      Member
      • Jul 2020
      • 59

      #3
      Sorry, it doesn't work. I've tried many options and none works.
      I need the manager to be able to assign tasks to all users in certain groups and no one could remove the group from the task.
      Attached Files

      Comment

      • ksv
        Member
        • Jul 2020
        • 59

        #4
        Сhose this option
        PHP Code:
        ifThen(
        entity\isAttributeChanged('assignedUsersIds'),
        entity\addLinkMultipleId('assignedUsers',createdByName)); 
        
        does not work quite correctly! I need that if the creator is not in the list of assignedusers (linkmultiply), then add him
        Could you help me please?

        Comment

        • Maximus
          Senior Member
          • Nov 2018
          • 2731

          #5
          Hi there,

          > does not work quite correctly! I need that if the creator is not in the list of assignedusers (linkmultiply), then add him
          Could you help me please?

          You have to use creatredById instead of createdByName in the entity\addLinkMultipleId function.

          Comment

          Working...