mirror of
https://github.com/langgenius/dify-official-plugins.git
synced 2026-07-21 17:45:23 -04:00
Notion query_database tool: Filter not working on title properties & missing status/relation support. #895
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Kota-Maeda on GitHub (Dec 24, 2025).
Self Checks
Dify version
1.10.1
Plugin version
0.0.2
Cloud or Self Hosted
Self Hosted (Docker)
Steps to reproduce
Bug 1: Filter not working on title properties
query_databasetool with filter parameters:database_id: Your database IDfilter_property: "Name" (or any title property)filter_value: "Test"Expected behavior: Should return only pages where the title property equals "Test"
Actual behavior: Filter is ignored or returns an error because the tool creates a
rich_textfilter for title properties, which is incorrect according to Notion API specification.Bug 2: Status and relation properties return placeholders
query_databasetoolExpected behavior: Should return actual status values (e.g., "In Progress", "Done") and relation page IDs
Actual behavior: Returns
<status>and<relation>placeholders instead of actual valuesRelated issue: #1848
✔️ Error log
No response
@dosubot[bot] commented on GitHub (Dec 24, 2025):
Hi @Kota-Maeda! I'm Dosu and I’m helping the dify-official-plugins team.
Both bugs you described are confirmed and reproducible in the current Notion plugin code. The filter on title properties does not work because the code always creates a
rich_textfilter, even for title fields, which the Notion API ignores or errors on—title properties require atitlefilter instead. For status and relation properties, the tool just returns placeholders like<status>and<relation>because it doesn't extract or format their actual values from the Notion API response. There are no merged fixes or documented workarounds for these issues as of the latest plugin version. If you need these features urgently, you would need to patch the filter construction to use the correct property type for titles and extend the property extraction logic to handle status and relation types properly. Otherwise, monitoring for updates or contributing a fix would be the best path forward.See code details
To reply, just mention @dosu.
How did I do? Good | Irrelevant | Incorrect | Verbose | Hallucination | Report 🐛 | Other