Merge pull request #555 from norcnorc/fix-json-rpc-subtask-user-parameter
fix user parameter name for createSubtask, updateSubtask in json-RPC API
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user