REST API on getting pending task by roll or membership

1
0
-1

I would like to know on how to get the pending task based on role / assigned actor?
Currently, i can only get the pending task based on assigned_id column

1 answer

1
+1
-1
This one is the BEST answer!

Hi chris_dev,

You can use the user_id to filter the tasks. This will filter the tasks that are suitable for a specific user (depending on his role, membership) and even if those tasks are not still attributed to him. This is the logic used in the Bonita User Application where you're able to see the list of tasks available for a user under "To Do", which are separated from "My Tasks" which are already attributed.

The request would look like this: (I'm getting the tasks suitable for user_id=4)

hope this helps!

Thalia

Notifications