Zum Inhalt springen
Leadtime
Deutsch
Esc
navigateopen⌘Jpreview

Reorder tasks within a group (task type)

What this endpoint does: Reorders tasks within a specific task type group (row) in the Big Picture view. Tasks are arranged from left to right, where tasks further to the left have higher priority than those to the right. This is equivalent to dragging and dropping tasks within a row in the visual interface.

How it works:

  • Provide the project ID and the group ID (task type ID) you want to reorder
  • Provide an array of task IDs in the desired new order (left to right = highest to lowest priority)
  • The order array must include all tasks currently in that group - you cannot omit tasks
  • Tasks are reordered within their group only; this does not move tasks between groups or change task types

Visual behavior: After reordering, tasks will appear in the Big Picture view in the new sequence. The leftmost task becomes the highest priority item for that task type, making it easy to see what should be worked on first.

Use cases:

  • Prioritizing tasks within a category (e.g., which features are most important to customers)
  • Adjusting task order based on customer feedback during meetings
  • Reorganizing tasks after planning discussions or sprint planning
  • Setting up task sequence for team members to follow
  • Responding to urgent requests by moving critical tasks to the left

Validation:

  • Project must exist and not be deleted
  • Group ID must be a valid task type ID for the project
  • Order array must contain valid task IDs that belong to the specified group
  • All tasks currently in the group must be included in the order array (no tasks can be omitted)

Permissions: Requires BigPicture.canEdit permission and access to the specified project.

POST/tasks/bigPicture/order
Authorization
AuthorizationOAuth2 access token · headerrequired
Scopes:api:write
or
AuthorizationBearer token (JWT) · headerrequired
Request body
requiredapplication/json
groupIdstring<uuid>required
UUID of the task type group (row) within which to reorder tasks. This identifies which horizontal row in the Big Picture view contains the tasks you want to reorder. Must be a valid task type ID for the specified project.
newOrderstring[][]required
Array of task UUIDs in the desired new order (left to right = highest to lowest priority). Must include all tasks currently in the specified group - you cannot omit any tasks. The first task ID in the array will appear leftmost (highest priority), the last will appear rightmost (lowest priority).
projectIdstring<uuid>required
UUID of the project containing the tasks to reorder. The project must exist, not be deleted, and belong to the authenticated user's workspace. The user must have BigPicture.canEdit permission and access to the project.
Responses
200Tasks successfully reordered
successboolean
400Invalid project ID, group ID, or order array
401Unauthorized - Invalid or missing authentication token
403User lacks BigPicture.canEdit permission or project access
404Project not found or deleted
Request
curl -X POST "https://leadtime.app/api/public/tasks/bigPicture/order" \
  -H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
  "groupId": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
  "newOrder": [
    "f1a2b3c4-d5e6-7890-abcd-ef1234567890",
    "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
    "b1c2d3e4-f5a6-7890-abcd-ef1234567890"
  ],
  "projectId": "7225cca9-ac5f-461d-9a9d-ad8d7ee1b597"
}'
Response
{
  "success": true
}