# Tasks that are not Claimed task

**URL:** <https://forum.flowable.org/t/tasks-that-are-not-claimed-task/5269>\
**Category:** Uncategorized\
**Created:** [January 20, 2020, 12:51pm UTC](https://forum.flowable.org/t/tasks-that-are-not-claimed-task/5269 "2020-01-20T12:51:34Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![prs.parisa](https://avatars.discourse-cdn.com/v4/letter/p/5e9695/32.png) [@prs.parisa](https://forum.flowable.org/u/prs.parisa)\
**Post date:** [January 20, 2020, 12:51pm UTC](https://forum.flowable.org/t/tasks-that-are-not-claimed-task/5269/1 "2020-01-20T12:51:34Z")

</div>

I use this method to get tasks of a user:

```
taskService.createTaskQuery().taskAssignee("admin").list();

```

but I need a method that gets tasks of a user that are not decided by the user yet. imagine that admin goes to his/her task page and he/she just wants to see tasks that are not claimed or unclaimed then do an action on them.

---

<div class="post-metadata">

**Author:** ![wwitt](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.flowable.org/wwitt/32/706_2.png) [@wwitt](https://forum.flowable.org/u/wwitt)\
**Post date:** [January 20, 2020, 1:40pm UTC](https://forum.flowable.org/t/tasks-that-are-not-claimed-task/5269/2 "2020-01-20T13:40:23Z")

</div>

There is this, which gets all task where the assignee is null:  
`taskService.createTaskQuery().taskUnassigned().list();`

---

<div class="post-metadata">

**Author:** ![prs.parisa](https://avatars.discourse-cdn.com/v4/letter/p/5e9695/32.png) [@prs.parisa](https://forum.flowable.org/u/prs.parisa)\
**Post date:** [January 22, 2020, 5:19am UTC](https://forum.flowable.org/t/tasks-that-are-not-claimed-task/5269/3 "2020-01-22T05:19:24Z")

</div>

thank you for your response. But my question was not about assignee it was about claiming. Is there any service to get tasks that their claim time is null?

---

<div class="post-metadata">

**Author:** ![wwitt](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.flowable.org/wwitt/32/706_2.png) [@wwitt](https://forum.flowable.org/u/wwitt)\
**Post date:** [January 22, 2020, 1:46pm UTC](https://forum.flowable.org/t/tasks-that-are-not-claimed-task/5269/4 "2020-01-22T13:46:18Z")

</div>

If a task is claimed it will have an assignee, if it is unclaimed it will have a `null` assignee. Can you elaborate on what you mean by claim time? Do you want the query to show tasks that have never had an assignee?
