diff options
author | Frederic Guillot <fred@kanboard.net> | 2016-01-23 12:29:44 -0500 |
---|---|---|
committer | Frederic Guillot <fred@kanboard.net> | 2016-01-23 12:29:44 -0500 |
commit | ba5937b07490160affad8239a7a9e6227979f770 (patch) | |
tree | c9174bed0db928160e1dd55bf06ac7fbc57acab2 /doc | |
parent | 0448fdc56b9d7c58ac78d8375447c59b68702562 (diff) |
Add new API procedures to move and duplicate tasks to another project
Diffstat (limited to 'doc')
-rw-r--r-- | doc/api-task-procedures.markdown | 76 |
1 files changed, 75 insertions, 1 deletions
diff --git a/doc/api-task-procedures.markdown b/doc/api-task-procedures.markdown index f2ca54d1..49868e2a 100644 --- a/doc/api-task-procedures.markdown +++ b/doc/api-task-procedures.markdown @@ -525,7 +525,7 @@ Response example: ### moveTaskPosition -- Purpose: **Move a task to another column or another position** +- Purpose: **Move a task to another column, position or swimlane inside the same board** - Parameters: - **project_id** (integer, required) - **task_id** (integer, required) @@ -560,3 +560,77 @@ Response example: "result": true } ``` + +### moveTaskToProject + +- Purpose: **Move a task to another project** +- Parameters: + - **task_id** (integer, required) + - **project_id** (integer, required) + - **swimlane_id** (integer, optional) + - **column_id** (integer, optional) + - **category_id** (integer, optional) + - **owner_id** (integer, optional) +- Result on success: **true** +- Result on failure: **false** + +Request example: + +```json +{ + "jsonrpc": "2.0", + "method": "moveTaskToProject", + "id": 15775829, + "params": [ + 4, + 5 + ] +} +``` + +Response example: + +```json +{ + "jsonrpc": "2.0", + "id": 15775829, + "result": true +} +``` + +### duplicateTaskToProject + +- Purpose: **Move a task to another column or another position** +- Parameters: + - **task_id** (integer, required) + - **project_id** (integer, required) + - **swimlane_id** (integer, optional) + - **column_id** (integer, optional) + - **category_id** (integer, optional) + - **owner_id** (integer, optional) +- Result on success: **task_id** +- Result on failure: **false** + +Request example: + +```json +{ + "jsonrpc": "2.0", + "method": "duplicateTaskToProject", + "id": 1662458687, + "params": [ + 5, + 7 + ] +} +``` + +Response example: + +```json +{ + "jsonrpc": "2.0", + "id": 1662458687, + "result": 6 +} +``` |