Project

General

Profile

Project Tasks

Added by Alex Bakumenko over 6 years ago

Hello,
is there any opportunity in beCPG Project Window to set the visibility of tasks. For example my Chief created a main task "MainTask". Then he created 2 subTasks MainSubTask1, MainSubtask2 and destine them to his subchiefs. And subchiefs can create many subTasks to MainSubTask1 and MainSubtask2 (superSubTasks), but Chief doesn't want see all theese superSubTasks. He wants to see only created by him tasks.
I hope I clearly described the question and you can help me to customize the system.


Replies (1)

RE: Project Tasks - Added by Philippe Quéré over 6 years ago

In standard, it is not possible but you can develop your own javascript rule.

See alfresco javascript rule to manage permissions.
You will find some information in the documentation and the forum of Alfresco:
http://docs.alfresco.com/cloud/tasks/library-folder-rules-define-create.html
http://docs.alfresco.com/5.2/references/API-JS-Security.html

Here is an example

document.setInheritsPermissions(false);
document.setPermission("Coordinator","GROUP_site_bdd-enregistrement_SiteManager");
document.setPermission("Collaborator","GROUP_site_bdd-enregistrement_SiteCollaborator");
document.setPermission("Contributor","GROUP_site_bdd-enregistrement_SiteContributor");

    (1-1/1)