Move a task to another project
Moves the task to another project in the same workspace. Its subtasks move with it; a subtask moved on its own leaves its parent. Each task goes to `statusId` (task only) or the target status with the same name, else the first of the same type, else the first status, at the end of the column. Milestone and cycle are cleared. The label is kept when the target project has a label with the same name, otherwise removed. Comments, checklist, attachments and assignees move with the task. Answers 400 when an assigned person or role can't be assigned in the target project, for support tasks, archived tasks, archived projects and the task's own project; 409 when the target status is at its blocking WIP limit or `expectedVersion` is stale. Emits `task.moved` for each moved task.
Moves the task to another project in the same workspace. Its subtasks move with it; a subtask moved on its own leaves its parent. Each task goes to statusId (task only) or the target status with the same name, else the first of the same type, else the first status, at the end of the column. Milestone and cycle are cleared. The label is kept when the target project has a label with the same name, otherwise removed. Comments, checklist, attachments and assignees move with the task. Answers 400 when an assigned person or role can't be assigned in the target project, for support tasks, archived tasks, archived projects and the task's own project; 409 when the target status is at its blocking WIP limit or expectedVersion is stale. Emits task.moved for each moved task.
In: header
Path Parameters
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
curl -X POST "https://example.com/tasks/string/move" \ -H "Content-Type: application/json" \ -d '{ "projectId": "string" }'{ "data": { "id": "string", "workspaceId": "string", "projectId": "string", "title": "string", "description": "string", "descriptionContent": [ {} ], "statusId": "string", "parentId": "string", "priority": "NO_PRIORITY", "startDate": "2019-08-24T14:15:22Z", "dueDate": "2019-08-24T14:15:22Z", "completedAt": "2019-08-24T14:15:22Z", "version": 0, "createdAt": "2019-08-24T14:15:22Z", "updatedAt": "2019-08-24T14:15:22Z", "assignees": [ { "membershipId": "string", "displayName": "string", "image": "string" } ], "assigneeRoles": [ { "roleId": "string", "name": "string" } ], "label": { "id": "string", "name": "string", "color": "string", "icon": "string", "description": "string" } }}
Planeward Docs