jamiebrynes7 / obsidian-todoist-plugin

Materialize Todoist tasks in Obsidian notes
https://jamiebrynes7.github.io/obsidian-todoist-plugin/
MIT License
936 stars 70 forks source link

Bug: Section Filters stopped working #263

Closed pdworkman closed 10 months ago

pdworkman commented 11 months ago

Describe the bug Filters on /Section which were previously working have stopped working. I get "Request failed, Status 500" as a response

Screenshots

Error message:

image

Embedded query:

image

The same query filter working inside Todoist:

image

Desktop (please complete the following information):

Additional context Add any other context about the problem here.

I have not touched these queries. They were previously working.

Queries by label are still working.

holstuwe commented 10 months ago

Con confirm this behaviour. This filter (section is "/⚡" for next actions, trying to implement GTD).

(#A Kalender & (overdue|today)), (##A Areas & @arbeit & (overdue | today)), (##A Areas & @arbeit & /⚡), (##A Projekte & @arbeit & (overdue | today)), (##A Projekte & @arbeit & /⚡)

Result in Todoist: grafik

Same query in Obsidian:

name: Todoist
filter: "(#A Kalender & (overdue|today)), (##A Areas & @arbeit & (overdue | today)), (##A Areas & @arbeit & /⚡), (##A Projekte & @arbeit & (overdue | today)), (##A Projekte & @arbeit & /⚡)"

Result: grafik

This is the part which shows me results in Todoist itself: "##A Projekte & @arbeit & /⚡"

Show me all tasks within all subprojects of "A Projekte" (hence the ##) being in a section called "⚡" having the label "arbeit". grafik

Todoist version is v4923 (beta). Plugin is the latest version in Obsidian 1.5.3 (installer 1.4.16).

Changing the filter in Obsidian to something simpler, for example:

name: Todoist
filter: "/⚡"

Shows the correct result: grafik

No error in console here. Maybe the query is too complex for the api? Trying to get arround it with changing the query. Are comma separated queries not working with the api?

holstuwe commented 10 months ago

Changing the query to:

"(#A Kalender & (overdue|today)) | (##A Areas & @arbeit & (overdue | today)) | (##A Areas & @arbeit & /⚡) | (##A Projekte & @arbeit & (overdue | today)) | (##A Projekte & @arbeit & /⚡)"

using | instead of , works for me.

pdworkman commented 10 months ago

My queries started working again a day or two later without changing anything on my end.

jamiebrynes7 commented 10 months ago

Looks like this was a transient issue on Todoist's end, considering it was working, not working, then started working again with no changes on the plugin side!