{"action":"created","issue":{"url":"https://api.github.com/repos/HabitRPG/habitrpg/issues/4891","labels_url":"https://api.github.com/repos/HabitRPG/habitrpg/issues/4891/labels{/name}","comments_url":"https://api.github.com/repos/HabitRPG/habitrpg/issues/4891/comments","events_url":"https://api.github.com/repos/HabitRPG/habitrpg/issues/4891/events","html_url":"https://github.com/HabitRPG/habitrpg/issues/4891","id":63182513,"number":4891,"title":"Todo task created via user/tasks/{id}/up is not marked as completed","user":{"login":"fnurl","id":106794,"avatar_url":"https://avatars.githubusercontent.com/u/106794?v=3","gravatar_id":"","url":"https://api.github.com/users/fnurl","html_url":"https://github.com/fnurl","followers_url":"https://api.github.com/users/fnurl/followers","following_url":"https://api.github.com/users/fnurl/following{/other_user}","gists_url":"https://api.github.com/users/fnurl/gists{/gist_id}","starred_url":"https://api.github.com/users/fnurl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fnurl/subscriptions","organizations_url":"https://api.github.com/users/fnurl/orgs","repos_url":"https://api.github.com/users/fnurl/repos","events_url":"https://api.github.com/users/fnurl/events{/privacy}","received_events_url":"https://api.github.com/users/fnurl/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-03-20T07:44:02Z","updated_at":"2015-03-23T10:35:22Z","closed_at":null,"body":"At the moment, when creating a new todo task via the `user/tasks/{id}/up` route, the user gets xp and gold, but the todo task remains incomplete. Should the default not be that the todo task also gets marked as complete?\r\n\r\n<bountysource-plugin>\r\n---\r\nWant to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/9788163-todo-task-created-via-user-tasks-id-up-is-not-marked-as-completed?utm_campaign=plugin&utm_content=tracker%2F68393&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F68393&utm_medium=issues&utm_source=github).\r\n</bountysource-plugin>"},"comment":{"url":"https://api.github.com/repos/HabitRPG/habitrpg/issues/comments/84938916","html_url":"https://github.com/HabitRPG/habitrpg/issues/4891#issuecomment-84938916","issue_url":"https://api.github.com/repos/HabitRPG/habitrpg/issues/4891","id":84938916,"user":{"login":"fnurl","id":106794,"avatar_url":"https://avatars.githubusercontent.com/u/106794?v=3","gravatar_id":"","url":"https://api.github.com/users/fnurl","html_url":"https://github.com/fnurl","followers_url":"https://api.github.com/users/fnurl/followers","following_url":"https://api.github.com/users/fnurl/following{/other_user}","gists_url":"https://api.github.com/users/fnurl/gists{/gist_id}","starred_url":"https://api.github.com/users/fnurl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fnurl/subscriptions","organizations_url":"https://api.github.com/users/fnurl/orgs","repos_url":"https://api.github.com/users/fnurl/repos","events_url":"https://api.github.com/users/fnurl/events{/privacy}","received_events_url":"https://api.github.com/users/fnurl/received_events","type":"User","site_admin":false},"created_at":"2015-03-23T10:35:22Z","updated_at":"2015-03-23T10:35:22Z","body":"Thanks @Alys for the comment. I now found the quote you are referring to, I previously only read the documentation under `user/tasks{id}/{direction}` which refers to a task rather than a habit. The description of the route reads *\"Simple scoring of a task.\"* and for id the description is *\"ID of the task to score. If this __task__ doesn't exist, a task will be created automatically\"* (my emphasis). With the description of the object field as *\"If you're creating a 3rd-party __task__, pass up any task attributes in the body (see TaskSchema)\"* (my emphasis).\r\n\r\nI assumed that I could create todos as well since I understood that task is the parent of habits, dailies and todos according to [task.js](https://github.com/HabitRPG/habitrpg/blob/develop/website/src/models/task.js). Was my assumption correct?\r\n\r\nI send something like this when I try to complete my task (same is sent both for new and old tasks (todos))\r\n\r\n    {\r\n      \"text\": \"my todo\",\r\n      \"id\": \"{a trello card id}-zapier\",\r\n      \"type\": \"todo\",\r\n      \"completed\": \"true\",\r\n      \"dateCompleted\": \"{date from last trello activity}\",\r\n      \"notes\": \"{trello card description}\"\r\n    }\r\n \r\nAm I using `/up` in the wrong way? Using `PUT /user/tasks/{id}` and changing complete to true did not seem to score anything for the user?"}}