Due dates within tags not displayed in search

What I did:
I created due tags with dates which were different from the date assigned to the note. When I tried searching those due tags using due(today), the results used the date assigned to the note instead of the one in the tag.

What happened:
First example - due tag has date 25th September and note has date 4th October, technically based on the date used in due tag it is due today but it doesnt come up in search

Second example: due tag has date 25th September and note also has today’s date, this note comes up in search

What I expected: Since i have explicitly put a date in the due tag, it should have come up

Things that might be helpful to know (Agenda version, OS and model, etc): I have only recently bought the premium subscription, so let me know if I’m doing something wrong

I don’t think that is forming a proper search. You should use the # in the search too.

I got the following by typing in #due(today)

This is also not returning any result. Is the date inside the due tag not searchable?

I have the same problem and others.

Here is a video with a search for #due(tomorrow):

In both cases, “optional” and “required” were found:

Top note:
Bildschirmfoto 2025-09-25 um 23.19.33

Bottom note:
Bildschirmfoto 2025-09-25 um 23.20.04

I don’t understand this.

Test on macOS 26.0, Agenda 21.0.2 (356)

So it doesn’t find the tag at first, but when you choose optional or required, it does?

Do you know if this is a new issue you are seeing, or was it there before?

Update: it looks to be some sort of refresh issue. Ie, when you switch optional/required, it triggers a refresh. We will look into this.

Actually it seems whatever the issue is, it somehow gets resolved by switching. When I search for # due(today), no results appear at first but when I click on ‘optional’ and then switch back to ‘required,’ the results show up correctly.

In addition, the search result is incorrect for me.
In both cases, “optional” and “required”, the tag #due(21.08.2025) is found on 25.09.2025 and when searching for #due(tomorrow). Why?

From what I understand, when you search # due(any date), it show all tags which are due till that date. Thats why the tag from August is also getting displayed in your case.

A very nice task for Ask Agenda.

Okay, too bad, didn’t find everything this time either, but…
These tags also exist:

So why should only #due(21.08.2025) be found?

Well now that’s concerning…I think I need to find some other way to keep track of due tasks since I don’t want to randomly miss out on any assigned tag

I agree.

I need 100% accurate and logical search results and must always be 100% sure that I have entered my search queries correctly.

It seems like a bug to me. I will take look at it. If switching the toggle fixes the search, it is just a refresh bug.

Re: due tags, they are special. A due tag should be found if you search for due any time after the date in the note. That’s because something that is due on a date remains due after that date.

If you want a standard date, that will just match on a particular date, you can just use date or make your own tag with a date.

Thanks!

I have a fix for this. It is coming in the next release, in a week or so.

Kind regards,
Drew

Hi Drew,

I’m using Version 22.0 (360) and I’m still experiencing the above problem, as well as a discrepancy in results when using multi-criteria queries:

e.g. I’ve created a smart overview of \@Pan && #next-action && \has-unchecked-item.

The result here, shows shows a record that has been checked, and also shows an extra record @PPX, which is supposed to be a bug here, right?

Looking forward to your new release!!

Best

What is the idea of using the \ with \@Pan? You don’t want to match a person?

Note that overviews are note searches. It should find any note with a todo item, a next action tag, and the text “@Pan”. It looks like that is working.

I see you also have paragraph filters on using the menu at the top. It should show unchecked, with a tag, and a person (I suppose).

Can you explain what you expect, and what is happening? I can’t fully follow from the screenshots.

Kind regards,
Drew

Hi Drew,

I apologize for the unclear description. The correct command should be:

\person(name:Pan) AND \tag(name:next-action) AND \has-unchecked-item

This query aims to find records that simultaneously meet the criteria of being assigned to @PanPan, having the “next-action” tag, and remaining unchecked.

Person alias contains Pan + #next-action + equal to To Do items

However, in addition to Pan, the returned results also contain unchecked records for PPX. According to my understanding, there should be no records for PPX returned. Am I correct?

Best

Note that search works at the note level, not the paragraph level. So if your note has any unchecked item at all, the whole note will qualify. Same with the tags and person.

So this search should find all notes that have all of these true

  1. Have a person called Pan somewhere in the note
  2. Have a tag “next-action” somewhere in the note
  3. Have an unchecked item.

It doesn’t require that these all be on a single paragraph. You can use the Paragraph filter to control what you see to some extent too. Eg you could setup the paragraph filter to only show paragraphs containing the person Pan. I think then you would be close to what you want.

Does this make sense? Are you seeing behavior that is not consistent with this explanation?

1 Like

Hi Drew,Thank you so much for the detailed explanation! Now I completely understand how Agenda’s search works at the note level rather than the paragraph level.

While my use case would ideally require paragraph-level filtering (to show only @Pan’s tasks when multiple people are mentioned in the same note), I appreciate the current design and the workaround suggestions you provided.

For now, I’ll reorganize my notes to separate tasks by person, which aligns better with Agenda’s search logic. Looking forward to potential enhancements in future updates!

Thanks again for your patience and clear explanation.