# How does ignoreAssigneeValue work?

**URL:** <https://forum.flowable.org/t/how-does-ignoreassigneevalue-work/5464>\
**Category:** Flowable Engine\
**Created:** [February 17, 2020, 3:12pm UTC](https://forum.flowable.org/t/how-does-ignoreassigneevalue-work/5464 "2020-02-17T15:12:07Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![toke](https://avatars.discourse-cdn.com/v4/letter/t/e495f1/32.png) [@toke](https://forum.flowable.org/u/toke)\
**Post date:** [February 17, 2020, 3:12pm UTC](https://forum.flowable.org/t/how-does-ignoreassigneevalue-work/5464/1 "2020-02-17T15:12:07Z")

</div>

I am working on a project where I need to get tasks by candidate groups and include both assigned and unassigned user tasks.

Following this discussion: [TaskQuery API questions, multiple assignees and candidates that have been assigned](https://forum.flowable.org/t/taskquery-api-questions-multiple-assignees-and-candidates-that-have-been-assigned/131) and this corresponding PR: [https://github.com/flowable/flowable-engine/pull/580](https://github.com/flowable/flowable-engine/pull/580) I have upgraded Flowable to 6.5.0.

I have a number of user tasks. Some of them are assigned, some aren’t. My base query is

```
GET localhost:8080/process-api/runtime/tasks?processDefinitionKey=<processKey>&taskDefinitionKey=<taskKey>

```

Where processKey and taskKey are some keys. This returns both assigned and unassigned tasks. I also need to scope the returned list by candidate groups, so I change the query to

```
GET localhost:8080/process-api/runtime/tasks?processDefinitionKey=<processKey>&taskDefinitionKey=<taskKey>&candidateGroups=group1,group2

```

This will only return unassigned tasks as discussed in the topic linked earlier. After upgrading to 6.5.0, there should be a new parameter ignoreAssigneeValue that I can use to include both assigned and unassigned tasks when querying by candidate group(s). But I cannot make the following query return assigned tasks:

```
GET localhost:8080/process-api/runtime/tasks?processDefinitionKey=<processKey>&taskDefinitionKey=<taskKey>&candidateGroups=group1,group2&ignoreAssigneeValue=true

```

What query should I be making in order to list both assigned and unassigned user tasks with the specified candidate group(s)?

---

<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:** [February 18, 2020, 2:18pm UTC](https://forum.flowable.org/t/how-does-ignoreassigneevalue-work/5464/2 "2020-02-18T14:18:49Z")

</div>

Looking at the code, it appears that PR580 only added `ignoreAssigneeValue` to the Java API, but not the REST API. You can open an issue on the github page and we’ll get to it eventually, or you can try your had at creating a PR 🙂

---

<div class="post-metadata">

**Author:** ![toke](https://avatars.discourse-cdn.com/v4/letter/t/e495f1/32.png) [@toke](https://forum.flowable.org/u/toke)\
**Post date:** [February 20, 2020, 9:37am UTC](https://forum.flowable.org/t/how-does-ignoreassigneevalue-work/5464/3 "2020-02-20T09:37:35Z")

</div>

Thanks for the clarification. I’ll file an issue on the GitHub page 🙂 Edit: Link to issue on GitHub: [https://github.com/flowable/flowable-engine/issues/2180](https://github.com/flowable/flowable-engine/issues/2180)

---

<div class="post-metadata">

**Author:** ![akki](https://avatars.discourse-cdn.com/v4/letter/a/b9e5f3/32.png) [@akki](https://forum.flowable.org/u/akki)\
**Post date:** [September 8, 2020, 8:52am UTC](https://forum.flowable.org/t/how-does-ignoreassigneevalue-work/5464/4 "2020-09-08T08:52:28Z")

</div>

Will creating a `HistoricTaskInstanceQuery` not work?  
There is a method `taskInvolvedGroups` which queries tasks which have identity links to given set of group IDs.
