Skip to content

Add order support to task updates#223

Merged
goncalossilva merged 1 commit intomainfrom
goncalossilva/task-order
Feb 20, 2026
Merged

Add order support to task updates#223
goncalossilva merged 1 commit intomainfrom
goncalossilva/task-order

Conversation

@goncalossilva
Copy link
Member

@goncalossilva goncalossilva commented Feb 20, 2026

Summary

  • Add order as an optional parameter to update_task in sync and async clients
  • Include order in update payloads when provided
  • Extend task update tests to validate order is sent

Closes #209

Allow update_task in sync and async clients to accept order and send
it in the request payload. Also extend task update tests to validate
that order is passed through.
@goncalossilva goncalossilva marked this pull request as ready for review February 20, 2026 03:01
@goncalossilva goncalossilva requested a review from a team as a code owner February 20, 2026 03:01
@goncalossilva goncalossilva requested review from chiara-doist and Copilot and removed request for a team February 20, 2026 03:01
@goncalossilva goncalossilva merged commit 8c0352f into main Feb 20, 2026
5 checks passed
@goncalossilva goncalossilva deleted the goncalossilva/task-order branch February 20, 2026 03:02
@doist-bot
Copy link

doist-bot bot commented Feb 20, 2026

⚠️ Doistbot encountered an error while reviewing this PR.

  • Status: FAILED
  • Delivery: 841b39a0-0e08-11f1-8d85-fad5ef899588
  • Logs: Datadog

⚠️ Doistbot hit an error while reviewing this PR:

Failed to clone repository Doist/todoist-api-python

Please, try the command again or contact the team maintaining the bot.

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This pull request adds support for the order parameter to the update_task methods in both synchronous and asynchronous Todoist API clients, addressing issue #209. This change brings update_task into parity with add_task, which already supports the order parameter for controlling task positioning within projects or sections.

Changes:

  • Added order: int | None = None parameter to update_task methods in both sync and async clients
  • Updated method docstrings to document the new parameter
  • Extended test coverage to validate that order is properly sent in update requests

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

File Description
todoist_api_python/api.py Added order parameter to sync update_task method signature, docstring, and request payload
todoist_api_python/api_async.py Added order parameter to async update_task method signature, docstring, and request payload
tests/test_api_tasks.py Added order field to test data to validate parameter is sent in API requests

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link

@chiara-doist chiara-doist left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@goncalossilva unless I'm missing something, I don't see the Update Task API supporting the order parameter.

day_order and collapsed also don't seem to be supported params 👀

Am I missing something?

@goncalossilva
Copy link
Member Author

goncalossilva commented Feb 21, 2026

@chiara-doist You're not! I didn't realize these parameters are missing from our API. Working to fix that. :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

update_task does not have 'order' parameter

3 participants