diff options
author | Frederic Guillot <fred@kanboard.net> | 2015-01-28 20:34:49 -0500 |
---|---|---|
committer | Frederic Guillot <fred@kanboard.net> | 2015-01-28 20:34:49 -0500 |
commit | 549b86037bf1e62acbbc8b613ea0ce1fb250dbef (patch) | |
tree | 11f4fb392a7a638a2a65e4f5c89e8c2a685b3f8d | |
parent | 7703d0459ab33b8b5ca0e49410fe5b8b8962a61c (diff) | |
parent | f56ee7467ed293f08f6070475f3b1c41f939fd1e (diff) |
Merge branch 'master' of https://github.com/fguillot/kanboard
-rw-r--r-- | docs/api-json-rpc.markdown | 4 | ||||
-rw-r--r-- | scripts/kanboard.py | 12 |
2 files changed, 8 insertions, 8 deletions
diff --git a/docs/api-json-rpc.markdown b/docs/api-json-rpc.markdown index 4284df08..a6a84d6b 100644 --- a/docs/api-json-rpc.markdown +++ b/docs/api-json-rpc.markdown @@ -1879,7 +1879,7 @@ Response example: - Parameters: - **task_id** (integer, required) - **title** (integer, required) - - **assignee_id** (int, optional) + - **user_id** (int, optional) - **time_estimated** (int, optional) - **time_spent** (int, optional) - **status** (int, optional) @@ -1996,7 +1996,7 @@ Response example: - **id** (integer, required) - **task_id** (integer, required) - **title** (integer, optional) - - **assignee_id** (integer, optional) + - **user_id** (integer, optional) - **time_estimated** (integer, optional) - **time_spent** (integer, optional) - **status** (integer, optional) diff --git a/scripts/kanboard.py b/scripts/kanboard.py index 65b51dc9..6c9d2287 100644 --- a/scripts/kanboard.py +++ b/scripts/kanboard.py @@ -988,7 +988,7 @@ class Kanboard(): return response.json()['result'] - def createSubtask(self, task_id, title, assignee_id=None, time_estimated=None, time_spent=None, status=None): + def createSubtask(self, task_id, title, user_id=None, time_estimated=None, time_spent=None, status=None): kid = self._getId() params = { "jsonrpc": "2.0", @@ -1001,8 +1001,8 @@ class Kanboard(): } #optional parameters - if assignee_id is not None: - params['params']["assignee_id"] = assignee_id + if user_id is not None: + params['params']["user_id"] = user_id if time_estimated is not None: params['params']["time_estimated"] = time_estimated if time_spent is not None: @@ -1053,7 +1053,7 @@ class Kanboard(): return response.json()['result'] - def updateSubtask(self, subtask_id, task_id, title=None, assignee_id=None, time_estimated=None, time_spent=None, status=None): + def updateSubtask(self, subtask_id, task_id, title=None, user_id=None, time_estimated=None, time_spent=None, status=None): kid = self._getId() params = { "jsonrpc": "2.0", @@ -1068,8 +1068,8 @@ class Kanboard(): #optional parameters if title is not None: params['params']["title"] = title - if assignee_id is not None: - params['params']["assignee_id"] = assignee_id + if user_id is not None: + params['params']["user_id"] = user_id if time_estimated is not None: params['params']["time_estimated"] = time_estimated if time_spent is not None: |