Searching for all Complete tasks for a particular user

I am trying to search for all complete (tasks that apprer in the Done category from the bonita portal) using the REST API.

I have tried this but it is not working:

http://localhost:8084/bonita/API/bpm/userTask?p=0&f=user_id%3D203
http://localhost:8084/bonita/API/bpm/humanTask?p=0&f=state%3Dcomplete&f=user_id%3D203
http://localhost:8084/bonita/API/bpm/humanTask?p=0&f=state%3Dcompleted&f=user_id%3D203

but no success.

1 Like

You need to user archivedHumanTask resource, something like:

http://localhost:8080/bonita/API/bpm/archivedHumanTask?p=0&c=10&f=assigned_id%3D4

where assigned_id is the id of your particular user you are looking for.