{"action":"created","issue":{"url":"https://api.github.com/repos/fguillot/kanboard/issues/359","repository_url":"https://api.github.com/repos/fguillot/kanboard","labels_url":"https://api.github.com/repos/fguillot/kanboard/issues/359/labels{/name}","comments_url":"https://api.github.com/repos/fguillot/kanboard/issues/359/comments","events_url":"https://api.github.com/repos/fguillot/kanboard/issues/359/events","html_url":"https://github.com/fguillot/kanboard/issues/359","id":46788507,"number":359,"title":"JsonRPC createTask problem","user":{"login":"oazabir","id":1611494,"avatar_url":"https://avatars.githubusercontent.com/u/1611494?v=3","gravatar_id":"","url":"https://api.github.com/users/oazabir","html_url":"https://github.com/oazabir","followers_url":"https://api.github.com/users/oazabir/followers","following_url":"https://api.github.com/users/oazabir/following{/other_user}","gists_url":"https://api.github.com/users/oazabir/gists{/gist_id}","starred_url":"https://api.github.com/users/oazabir/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oazabir/subscriptions","organizations_url":"https://api.github.com/users/oazabir/orgs","repos_url":"https://api.github.com/users/oazabir/repos","events_url":"https://api.github.com/users/oazabir/events{/privacy}","received_events_url":"https://api.github.com/users/oazabir/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/fguillot/kanboard/labels/improvement","name":"improvement","color":"eb6420"}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2014-10-24T22:03:40Z","updated_at":"2016-06-24T12:12:05Z","closed_at":"2014-10-28T01:50:27Z","body":"updateTask works, but createTask fails. I get this error:\r\n\r\n\r\n\tPHP Fatal error:  Uncaught exception 'BadFunctionCallException' with message 'Bad Request' in /var/www/html/JsonRPC/Client.php:138\r\n\tStack trace:\r\n\t#0 /var/www/html/JsonRPC/Client.php(93): JsonRPC\\Client->execute('createTask', Array)\r\n\t#1 /var/www/html/taskforasg.php(49): JsonRPC\\Client->__call('createTask', Array)\r\n\t#2 /var/www/html/taskforasg.php(49): JsonRPC\\Client->createTask(Array)\r\n\t#3 {main}\r\n\t  thrown in /var/www/html/JsonRPC/Client.php on line 138\r\n\r\n\tFatal error: Uncaught exception 'BadFunctionCallException' with message 'Bad Request' in /var/www/html/JsonRPC/Client.php:138\r\n\tStack trace:\r\n\t#0 /var/www/html/JsonRPC/Client.php(93): JsonRPC\\Client->execute('createTask', Array)\r\n\t#1 /var/www/html/taskforasg.php(49): JsonRPC\\Client->__call('createTask', Array)\r\n\t#2 /var/www/html/taskforasg.php(49): JsonRPC\\Client->createTask(Array)\r\n\t#3 {main}\r\n\t  thrown in /var/www/html/JsonRPC/Client.php on line 138\r\n\r\nHere's my code:\r\n\r\n\t$task = array(\r\n\t\t\t\t'title' => $taskTitle,\r\n\t\t\t\t'color_id' => 'blue',\r\n\t\t\t\t'owner_id' => $user_id,\r\n\t\t\t\t'project_id' => $project_id,\r\n\t\t\t\t'column_id' => 1\r\n\t\t\t);\r\n\tprint_r($task);\r\n\t$result = $client->createTask($task);\r\n\techo 'Result:'.$result;\r\n\r\nIf I change createTask to updateTask and pass an id, then it works. But createTask throws the exception."},"comment":{"url":"https://api.github.com/repos/fguillot/kanboard/issues/comments/228330067","html_url":"https://github.com/fguillot/kanboard/issues/359#issuecomment-228330067","issue_url":"https://api.github.com/repos/fguillot/kanboard/issues/359","id":228330067,"user":{"login":"nipasoni","id":3839205,"avatar_url":"https://avatars.githubusercontent.com/u/3839205?v=3","gravatar_id":"","url":"https://api.github.com/users/nipasoni","html_url":"https://github.com/nipasoni","followers_url":"https://api.github.com/users/nipasoni/followers","following_url":"https://api.github.com/users/nipasoni/following{/other_user}","gists_url":"https://api.github.com/users/nipasoni/gists{/gist_id}","starred_url":"https://api.github.com/users/nipasoni/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nipasoni/subscriptions","organizations_url":"https://api.github.com/users/nipasoni/orgs","repos_url":"https://api.github.com/users/nipasoni/repos","events_url":"https://api.github.com/users/nipasoni/events{/privacy}","received_events_url":"https://api.github.com/users/nipasoni/received_events","type":"User","site_admin":false},"created_at":"2016-06-24T12:12:05Z","updated_at":"2016-06-24T12:12:05Z","body":"how we can assign column id in create task "}}
{"actor":{"display_login":"nipasoni"}}