How to query requisitions like "get tasks" and what autentication can do for me on task context

cancel
Showing results for 
Search instead for 
Did you mean: 
cararuna
Active Member

How to query requisitions like "get tasks" and what autentication can do for me on task context

Hey guys, i need a help on a issue at alfresco.
On my project, i need to filter all tasks to a logged in user.
The idea is to show only the tasks that the logged user group is matched.

Ok, at the beginning, i started making a filter at my front end, using the autenticate of admin (that returns all the active tasks) and filtering the tasks that matches with the user group.

It works but i dont know in future, if my application had too much tasks. So i need to make a query to return only the tasks that needs to be avalable to the logged user.

By native, at the swagger, we know that the autenticate token filter the tasks, beucase of this rule:
gettasks.png

He tolds about user is assignee or a candidate.
if i change the assignee and put my logged user, it works, ok.
but candidate of a task, in my context, is the group that returns because of xml file that rules it.

So, how can i filter with user autenticate token the groups that is a candidate, not the person directly.

in resume: I need to filter my tasks with the rule that only return the tasks that the user's group is a candidate, but not on front. Query? Using Autenticate token? idk 

1 Reply
cararuna
Active Member

Re: How to query requisitions like "get tasks" and what autentication can do for me on tas

Now i have new issues.
I rearranged my candidate group id and works on alfresco/share.

But the task doesnt return if i use "get tasks" from Alfresco doc swagger.
So, how can i make a request to have the same return tasks as the Alfresco's share dashboard???

The tasks simple doesnt returns with user's autenticated token and he is in the group that is a candidate.