summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authornorcnorc <norcnorc@users.noreply.github.com>2015-01-27 18:10:06 +0100
committernorcnorc <norcnorc@users.noreply.github.com>2015-01-27 18:10:06 +0100
commit081b76c21f5dcc16cb9d7df11ab4903aac0f2111 (patch)
tree842786386e145f3727b004cada28219af025741f /scripts
parente6f7929f7780dc7ab06f6c4fbbbc86cd63115cd2 (diff)
fix incorrect user parameter name for createSubtask, updateSubtask in json-RPC API
Changing the documentation and python example to match what the server code says: "user_id", not "assignee_id".
Diffstat (limited to 'scripts')
-rw-r--r--scripts/kanboard.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/scripts/kanboard.py b/scripts/kanboard.py
index 604448fa..37bfa2b4 100644
--- a/scripts/kanboard.py
+++ b/scripts/kanboard.py
@@ -975,7 +975,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",
@@ -988,8 +988,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:
@@ -1040,7 +1040,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",
@@ -1055,8 +1055,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: