AnsweredAssumed Answered

[Share] How to control the task reassignment

Question asked by theoryoflinkin on Jun 16, 2014
Latest reply on Jul 1, 2014 by theoryoflinkin
Hi everyone,

In my projet, I need to activate the "Reassign" button on a workflow task only for a group of users.

Furthermore, I also need to check that the reassignment of the task is good. I mean if the task belongs to the group X, the new user selected for assignment need to be a member of group X.

For this, I have made some modifications inside the "task-edit-header.js" file.

But when I try to access to all the groups of the user selected I always get some errors.

For example, when I try this:


In fact, it seems that I can't access to the library People.

So, here is my questions:

1) How can I access to the groups of the user selected?

2) How can I get the userName of current user (to check if this user can access to the "reassign" button or not)?

3) Is there a better way than this to achieve what I need?

Thanks in advance