diff options
author | Frederic Guillot <fred@kanboard.net> | 2016-02-20 18:11:08 -0500 |
---|---|---|
committer | Frederic Guillot <fred@kanboard.net> | 2016-02-20 18:11:08 -0500 |
commit | 5fe68d4d499a8496229763369b50d71c9fa16200 (patch) | |
tree | 95bc4160b1da2fa79ca5ec1c0af4baab7cec1300 /doc | |
parent | da7259819bb6c3947317b39fc2a10626471bfca3 (diff) |
Add drag and drop to change swimlane positions
Diffstat (limited to 'doc')
-rw-r--r-- | doc/api-column-procedures.markdown | 2 | ||||
-rw-r--r-- | doc/api-swimlane-procedures.markdown | 43 |
2 files changed, 7 insertions, 38 deletions
diff --git a/doc/api-column-procedures.markdown b/doc/api-column-procedures.markdown index 5bae7f76..c5d2793b 100644 --- a/doc/api-column-procedures.markdown +++ b/doc/api-column-procedures.markdown @@ -97,7 +97,7 @@ Response example: - Parameters: - **project_id** (integer, required) - **column_id** (integer, required) - - **position** (integer, required) + - **position** (integer, required, must be >= 1) - Result on success: **true** - Result on failure: **false** diff --git a/doc/api-swimlane-procedures.markdown b/doc/api-swimlane-procedures.markdown index ab288c0c..c58e56c9 100644 --- a/doc/api-swimlane-procedures.markdown +++ b/doc/api-swimlane-procedures.markdown @@ -235,12 +235,13 @@ Response example: } ``` -## moveSwimlaneUp +## changeSwimlanePosition -- Purpose: **Move up the swimlane position** +- Purpose: **Move up the swimlane position** (only for active swimlanes) - Parameters: - **project_id** (integer, required) - **swimlane_id** (integer, required) + - **position** (integer, required, must be >= 1) - Result on success: **true** - Result on failure: **false** @@ -249,11 +250,12 @@ Request example: ```json { "jsonrpc": "2.0", - "method": "moveSwimlaneUp", + "method": "changeSwimlanePosition", "id": 99275573, "params": [ 1, - 2 + 2, + 3 ] } ``` @@ -268,39 +270,6 @@ Response example: } ``` -## moveSwimlaneDown - -- Purpose: **Move down the swimlane position** -- Parameters: - - **project_id** (integer, required) - - **swimlane_id** (integer, required) -- Result on success: **true** -- Result on failure: **false** - -Request example: - -```json -{ - "jsonrpc": "2.0", - "method": "moveSwimlaneDown", - "id": 957090649, - "params": { - "project_id": 1, - "swimlane_id": 2 - } -} -``` - -Response example: - -```json -{ - "jsonrpc": "2.0", - "id": 957090649, - "result": true -} -``` - ## updateSwimlane - Purpose: **Update swimlane properties** |