GrowShift

Tutorial · Tasks.org

How to build a custom filter in Tasks.org with AND, OR and NOT

We built a filter called Urgent work in Tasks.org 15.14.1 from three criteria: high priority, the work tag, and due today joined with OR. It showed two tasks, and one of them was tagged home. Here is how to build a filter, and how to read OR so it does what you expect.

Test record

App
Tasks.org 15.14.1 (GitHub release, F-Droid variant)
Device
Pixel 7 emulator, Android 16 (API 36)
Tested
APK source
official release page (external site)
Conditions
Fresh install, Continue without sync, no account. Six tasks in the default local list with different priorities, due dates and the tags home and work. The filter was saved and opened from the side menu.

The task list we filtered

A filter is a saved search that sits in the side menu like a list. It is worth building one when a question repeats every day, such as what is urgent at work?. To check the result by eye, we started from six tasks we knew well.

TaskPriorityDueTag
Pay internet billHighToday (test day)home
Send weekly reportHigh28 November (tomorrow)work
Book dentistMediumNonehome
Update CVLowNonework
HaircutLowRepeating, 25 DecemberNone
Pay rentLowRepeating, 1 DecemberNone

Our goal: high priority work tasks, plus anything due today. We expected Send weekly report and Pay internet bill.

Build the filter

  1. Step 1 Open the side menu and tap + next to Filters

    Tasks.org first offers ready-made filters: Overdue, Today only, Tomorrow, After today, several start and due date options, No tags, and High, Medium and Low priority. If one of them fits, you are done. For our goal we tapped Custom… at the top.

    List of ready-made filters in Tasks.org with Custom at the top
  2. Step 2 Name it and look at the first line

    The editor has Display name, Color, Icon and Filter criteria. The criteria already hold one line, My Tasks, with the number 6: the filter starts from every task and narrows from there. We typed Urgent work as the name.

    Create new filter screen with an empty name and the My Tasks line with 6 tasks
  3. Step 3 Tap Add Criteria

    The list has 13 types of criteria: Tag, Tag name contains, Start by, Due By, Priority, Title contains, In list, Repeats, Complete, Not started, Has subtasks, Is subtask and Has reminder.

    Add Criteria list with tag, date, priority and other criteria types
  4. Step 4 Add the priority

    Priority… shows four levels written as marks: !!!, !!, ! and o. We chose !!!. The new line read Priority at least !!! with a count of 2, our two red tasks.

    Priority criteria dialog with the levels three marks, two marks, one mark and o
  5. Step 5 Narrow it with a tag

    Tag… listed our two tags. With work, a third line read Tag: work with a count of 1. New lines join with AND by default, so each count is the result of everything above it.

    Filter criteria with My Tasks 6, Priority at least three marks 2, and Tag work 1

Change the operator to OR

  1. Step 6 Add the date line and tap it

    We added Due By… and picked Today from a list that also has Yesterday, Tomorrow, Day after tomorrow, Next week, Next Month, Now and No due date. Tapping the new line opens a dialog with AND, OR and NOT, plus a HELP button. We chose OR.

    Operator dialog for the Due By Today line with AND, OR and NOT
  2. Step 7 Read the counts again

    The last line now showed a branch icon and a count of 2. Then tap the save icon at the top left.

    Filter criteria with Due By Today joined with OR and a count of 2
  3. Step 8 Open the saved filter

    Saving took us back to My Tasks. The filter appeared in the side menu under Filters, with its count. Tapping it showed the list below.

    Urgent work filter showing Pay internet bill tagged home and Send weekly report tagged work

Why a home task is in a work filter

The custom filters documentation (external site) says that OR starts a new set of criteria, independent of the previous ones. Our filter did not mean high priority and (work or due today). It meant (high priority and work) or (due today). Pay internet bill matched the second group alone.

That is what we wanted here. If you want only work tasks, the same rule means the tag has to sit in each group, for example Priority at least !!!, AND Tag: work, OR Due By: Today, AND Tag: work. We did not build that second version in the test.

Three filters worth building

  • Today at work: Due By Today, AND Tag: work. Two lines, no OR.
  • Everything but home: My Tasks, NOT Tag: home. The documentation says NOT keeps the tasks that do not match the line.
  • Forgotten tasks: No due date, AND Priority at least !, to find important tasks that never got a date.

We did not build these three in the test. They use only the criteria and operators shown above. Our recurrence and priorities guide explains what the priority colors mean and how the dates of repeating tasks move, which changes what a date filter catches.

Common errors and how we fixed them

  • ProblemThe filter showed a task from the home tag.

    FixAn OR line starts an independent group. Repeat the tag in each group, or use AND only.

  • ProblemAfter saving, the app showed My Tasks, not the new filter.

    FixOpen the side menu. The filter is listed under Filters, with its task count.

  • ProblemThe Priority dialog shows marks, not names.

    FixIn our test, !!! matched exactly our two high priority tasks, the ones with a red circle. The marks go down from there to o, which stands for no priority.

Sources

We checked these sources on the test date.

  1. Tasks.org documentation: Custom filters (external site)
  2. Tasks.org 15.14.1 release (GitHub) (external site)