# Assignment filters

**URL:** <https://forum.flowable.org/t/assignment-filters/1269>\
**Category:** Flowable Application\
**Created:** [November 29, 2017, 10:22am UTC](https://forum.flowable.org/t/assignment-filters/1269 "2017-11-29T10:22:22Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![clara.gaset](https://avatars.discourse-cdn.com/v4/letter/c/cc9497/32.png) [@clara.gaset](https://forum.flowable.org/u/clara.gaset)\
**Post date:** [November 29, 2017, 10:22am UTC](https://forum.flowable.org/t/assignment-filters/1269/1 "2017-11-29T10:22:22Z")

</div>

Hi,  
Is there any way to not apply a default assignment filter in order to see all the tasks?  
What I want is a null/empty default filter so the user will be able to see all the task at first glance: the ones where I’m assigne/involved and the ones where I’m candidate merged.

Thanks,  
Clara

---

<div class="post-metadata">

**Author:** ![martin.grofcik](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.flowable.org/martin.grofcik/32/71_2.png) [@martin.grofcik](https://forum.flowable.org/u/martin.grofcik)\
**Post date:** [December 1, 2017, 7:29am UTC](https://forum.flowable.org/t/assignment-filters/1269/2 "2017-12-01T07:29:10Z")

</div>

Hi Clara,

use taskService query api

```
taskCandidateUser("...")
taskAssignee("...")

```

with or predicate

Martin

---

<div class="post-metadata">

**Author:** ![clara.gaset](https://avatars.discourse-cdn.com/v4/letter/c/cc9497/32.png) [@clara.gaset](https://forum.flowable.org/u/clara.gaset)\
**Post date:** [December 1, 2017, 7:59am UTC](https://forum.flowable.org/t/assignment-filters/1269/3 "2017-12-01T07:59:46Z")

</div>

Thanks Martin,  
However, what I want to do is to change the default filter in flowable-task aplication. I’ve already used the taskService.  
So my problem is how to not apply a filter in the ASSIGNMENT field in order to see the assigned and the candidate tasks in the same list.

![filter](https://canada1.discourse-cdn.com/flex035/uploads/flowable/original/1X/b02bbb8ac619301f789e585ac7760c9d01cd958a.PNG)

---

<div class="post-metadata">

**Author:** ![clara.gaset](https://avatars.discourse-cdn.com/v4/letter/c/cc9497/32.png) [@clara.gaset](https://forum.flowable.org/u/clara.gaset)\
**Post date:** [December 22, 2017, 11:05am UTC](https://forum.flowable.org/t/assignment-filters/1269/4 "2017-12-22T11:05:52Z")

</div>

I managed to modifiy the default value of the assignment field. However, I don’t now how to add a forth value to the list. What I want to do is to have one filter that includes all the tasks that the user has assigned and the ones that he is one of the candidates. Does anyone knows how to do it? I’ve been searching where these elements are created but I didn’t found it yet.

Thanks

---

<div class="post-metadata">

**Author:** ![deman](https://avatars.discourse-cdn.com/v4/letter/d/977dab/32.png) [@deman](https://forum.flowable.org/u/deman)\
**Post date:** [January 2, 2018, 9:34am UTC](https://forum.flowable.org/t/assignment-filters/1269/5 "2018-01-02T09:34:34Z")

</div>

Hi Clara,

I am new to Flowable. Just download it a few day back and play a bit.

I think you need to look into the following files:

1. modules/flowable-ui-task/flowable-ui-task-app/src/main/webapp/workflow/scripts/controllers/tasks.js (line 42-46)  
Add your option in assignmentOptions.

2. /modules/flowable-ui-task/flowable-ui-task-logic/src/main/java/org/flowable/app/service/runtime/FlowableTaskQueryService.java (line 232)

Add logic to handle the assignmentOptions in handleAssignment method .

Good luck.

Regards  
Sudirman
