# How to display the list of Pending task based on Process id and actor/lane group mapped

**URL:** <https://community.ofelia.com/t/how-to-display-the-list-of-pending-task-based-on-process-id-and-actor-lane-group-mapped/8009>\
**Category:** Q&A\
**Created:** [8 December 2016 11:54 UTC](https://community.ofelia.com/t/how-to-display-the-list-of-pending-task-based-on-process-id-and-actor-lane-group-mapped/8009 "2016-12-08T11:54:29Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dibyajit.Roy](https://avatars.discourse-cdn.com/v4/letter/d/7ea924/32.png) [@Dibyajit.Roy](https://community.ofelia.com/u/Dibyajit.Roy)\
**Post date:** [8 December 2016 11:54 UTC](https://community.ofelia.com/t/how-to-display-the-list-of-pending-task-based-on-process-id-and-actor-lane-group-mapped/8009/1 "2016-12-08T11:54:29Z")

</div>

Hi

I have to create a page to display information from the Portal. Now this page will be like a summary page.

I need to display the pending tasks for a particular user based on user id.

I also need to display the Tasks completed by the same user.

Also I need to the show the available tasks and the allocated/assigned tasks.

I have come across the following url to retrieve data

[http://yourserver](http://yourserver):port/bonita/API/bpm/archivedHumanTask?p=0&c=5&o=archivedDate%20DESC&f=caseId%3d1&f=user\_id%3d4

But this brings all tasks based on case id and not user id

Kindly suggest

---

<div class="post-metadata">

**Author:** ![system](https://europe1.discourse-cdn.com/flex013/uploads/community_bonitasoft/original/2X/6/6b7b18c0478f2645369e82e009b65e3b97f2cc12.svg) [@system](https://community.ofelia.com/u/system)\
**Post date:** [8 December 2016 22:52 UTC](https://community.ofelia.com/t/how-to-display-the-list-of-pending-task-based-on-process-id-and-actor-lane-group-mapped/8009/2 "2016-12-08T22:52:02Z")

</div>

Hi,

I think you’re on the right track. Take a deeper look to the documentation for the API [archivedHumanTask](http://documentation.bonitasoft.com/?page=bpm-api#toc12) and [userTask](http://documentation.bonitasoft.com/?page=bpm-api#toc6)

For the tasks that have been completed by a specific user, you can use the assigned\_id filter parameter on the API archivedUserTask.

For the tasks that are currently available to a specific user, you can look at how the portal built its task list: By example: …/API/bpm/humanTask?c=50&d=rootContainerId&f=state%3Dready&f=user\_id%3D4&o=displayName+ASC&p=0

Cheers

---

<div class="post-metadata">

**Author:** ![Dibyajit.Roy](https://avatars.discourse-cdn.com/v4/letter/d/7ea924/32.png) [@Dibyajit.Roy](https://community.ofelia.com/u/Dibyajit.Roy)\
**Post date:** [10 December 2016 10:51 UTC](https://community.ofelia.com/t/how-to-display-the-list-of-pending-task-based-on-process-id-and-actor-lane-group-mapped/8009/3 "2016-12-10T10:51:06Z")

</div>

Thanks Lionel Palacin .

I will check out the links.
