feat: add find-tasks-by-filter tool with order field support#281
Open
josegtmonteiro wants to merge 1 commit intoDoist:mainfrom
Open
feat: add find-tasks-by-filter tool with order field support#281josegtmonteiro wants to merge 1 commit intoDoist:mainfrom
josegtmonteiro wants to merge 1 commit intoDoist:mainfrom
Conversation
- Add find-tasks-by-filter tool for raw Todoist filter queries - Support project hierarchy filters (##Project) and complex queries - Add client-side sorting by priority, due_date, project, created, order - Include order field in task output schema for cross-project ordering - Add comprehensive test coverage (25 tests) Enables queries like: - ##Work - tasks from Work + all sub-projects - (today | overdue) & p1 - high priority due/overdue tasks - With sortBy: order for global task ordering Co-authored-by: Claude Sonnet 4.5 (1M context) <noreply@anthropic.com>
Collaborator
|
@josegtmonteiro You may wish to rebase your branch and resolve the conflicts. |
Member
|
Why don't we improve It should cover this use case without adding complexity or additional tools. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
find-tasks-by-filtertool for executing raw Todoist filter queries##Workreturns tasks from parent + all sub-projects)orderfield to task output schema for global task positioningMotivation
The existing
find-taskstool requires specific parameters (projectId, sectionId, etc.) but doesn't support:Changes
New Tool: find-tasks-by-filter
Parameters:
filter(required): Raw Todoist filter query stringlimit,cursor: Standard paginationsortBy: Client-side sorting (priority,due_date,project,created,order,default)sortOrder: Sort direction (asc/desc) with sensible defaults per fieldresponsibleUser,responsibleUserFiltering: User assignment filters (defaults toallto preserve filter behavior)labels,labelsOperator: Label filtersKey features:
##Workaggregates tasks from Work + all sub-projects(today | overdue) & p1for high-priority due/overdue tasksappliedFiltershowing final executed queryCore Enhancement: order field
order(fromtask.childOrder) tomapTask()functionorderto TaskSchema outputsortBy: orderUse case: Users can set order values (1, 3, 4, 5) across different sub-projects and sort globally
Test plan
##Work)Example usage
PR Checklist
getMcpServerAND exported insrc/index.tsDesign rationale
Follows repository's workflow-centric philosophy:
appliedFilterfield🤖 Generated with Claude Code