{"action":"created","comment":{"url":"https://api.github.com/repos/Imperialart/ScrumTeamOne/pulls/comments/35526424","id":35526424,"diff_hunk":"@@ -18,9 +18,15 @@ + (void)addNewTaskWithArguments:(NSString *)title notes:(NSString *)notes priori\n         newTask.title = title;\n         newTask.notes = notes;\n         newTask.priority = priority;\n-        newTask.lists = lists;\n         newTask.dueDate = dueDate;\n         \n+        if([lists count] != 0) {\n+            [newTask addLists:lists];\n+        } else {\n+            NSArray *defaultList = [CoreDataHelper fetchDataWithEntityName:@\"List\" AndPredicate:[NSPredicate predicateWithFormat:@\"name == %@\",@\"Default\"]];","path":"ScrumTeamOne/Managers/TaskManager.m","position":19,"original_position":19,"commit_id":"c0b370c77ffa2e781290577c57ff67a272fa1514","original_commit_id":"c0b370c77ffa2e781290577c57ff67a272fa1514","user":{"login":"maciejc","id":2429297,"avatar_url":"https://avatars.githubusercontent.com/u/2429297?v=3","gravatar_id":"","url":"https://api.github.com/users/maciejc","html_url":"https://github.com/maciejc","followers_url":"https://api.github.com/users/maciejc/followers","following_url":"https://api.github.com/users/maciejc/following{/other_user}","gists_url":"https://api.github.com/users/maciejc/gists{/gist_id}","starred_url":"https://api.github.com/users/maciejc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maciejc/subscriptions","organizations_url":"https://api.github.com/users/maciejc/orgs","repos_url":"https://api.github.com/users/maciejc/repos","events_url":"https://api.github.com/users/maciejc/events{/privacy}","received_events_url":"https://api.github.com/users/maciejc/received_events","type":"User","site_admin":false},"body":"Missing space before @\"Default\".","created_at":"2015-07-27T11:27:30Z","updated_at":"2015-07-27T11:27:30Z","html_url":"https://github.com/Imperialart/ScrumTeamOne/pull/4#discussion_r35526424","pull_request_url":"https://api.github.com/repos/Imperialart/ScrumTeamOne/pulls/4","_links":{"self":{"href":"https://api.github.com/repos/Imperialart/ScrumTeamOne/pulls/comments/35526424"},"html":{"href":"https://github.com/Imperialart/ScrumTeamOne/pull/4#discussion_r35526424"},"pull_request":{"href":"https://api.github.com/repos/Imperialart/ScrumTeamOne/pulls/4"}}},"pull_request":{"url":"https://api.github.com/repos/Imperialart/ScrumTeamOne/pulls/4","id":40892596,"html_url":"https://github.com/Imperialart/ScrumTeamOne/pull/4","diff_url":"https://github.com/Imperialart/ScrumTeamOne/pull/4.diff","patch_url":"https://github.com/Imperialart/ScrumTeamOne/pull/4.patch","issue_url":"https://api.github.com/repos/Imperialart/ScrumTeamOne/issues/4","number":4,"state":"open","locked":false,"title":"Us2","user":{"login":"ljercha","id":9252363,"avatar_url":"https://avatars.githubusercontent.com/u/9252363?v=3","gravatar_id":"","url":"https://api.github.com/users/ljercha","html_url":"https://github.com/ljercha","followers_url":"https://api.github.com/users/ljercha/followers","following_url":"https://api.github.com/users/ljercha/following{/other_user}","gists_url":"https://api.github.com/users/ljercha/gists{/gist_id}","starred_url":"https://api.github.com/users/ljercha/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ljercha/subscriptions","organizations_url":"https://api.github.com/users/ljercha/orgs","repos_url":"https://api.github.com/users/ljercha/repos","events_url":"https://api.github.com/users/ljercha/events{/privacy}","received_events_url":"https://api.github.com/users/ljercha/received_events","type":"User","site_admin":false},"body":"[US2] As a user, I can create new tasks and add them to lists of tasks, so that I can group my tasks.\r\nAcceptance criteria:\r\n\r\n1. If I don't specify any list, the task should be added to a \"Default\" list.\r\n","created_at":"2015-07-27T11:10:49Z","updated_at":"2015-07-27T11:27:30Z","closed_at":null,"merged_at":null,"merge_commit_sha":"0304afc9d34055d4991139846207ed2726c0bd0d","assignee":{"login":"ljercha","id":9252363,"avatar_url":"https://avatars.githubusercontent.com/u/9252363?v=3","gravatar_id":"","url":"https://api.github.com/users/ljercha","html_url":"https://github.com/ljercha","followers_url":"https://api.github.com/users/ljercha/followers","following_url":"https://api.github.com/users/ljercha/following{/other_user}","gists_url":"https://api.github.com/users/ljercha/gists{/gist_id}","starred_url":"https://api.github.com/users/ljercha/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ljercha/subscriptions","organizations_url":"https://api.github.com/users/ljercha/orgs","repos_url":"https://api.github.com/users/ljercha/repos","events_url":"https://api.github.com/users/ljercha/events{/privacy}","received_events_url":"https://api.github.com/users/ljercha/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/Imperialart/ScrumTeamOne/pulls/4/commits","review_comments_url":"https://api.github.com/repos/Imperialart/ScrumTeamOne/pulls/4/comments","review_comment_url":"https://api.github.com/repos/Imperialart/ScrumTeamOne/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Imperialart/ScrumTeamOne/issues/4/comments","statuses_url":"https://api.github.com/repos/Imperialart/ScrumTeamOne/statuses/c0b370c77ffa2e781290577c57ff67a272fa1514","head":{"label":"Imperialart:US2","ref":"US2","sha":"c0b370c77ffa2e781290577c57ff67a272fa1514","user":{"login":"Imperialart","id":11672384,"avatar_url":"https://avatars.githubusercontent.com/u/11672384?v=3","gravatar_id":"","url":"https://api.github.com/users/Imperialart","html_url":"https://github.com/Imperialart","followers_url":"https://api.github.com/users/Imperialart/followers","following_url":"https://api.github.com/users/Imperialart/following{/other_user}","gists_url":"https://api.github.com/users/Imperialart/gists{/gist_id}","starred_url":"https://api.github.com/users/Imperialart/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Imperialart/subscriptions","organizations_url":"https://api.github.com/users/Imperialart/orgs","repos_url":"https://api.github.com/users/Imperialart/repos","events_url":"https://api.github.com/users/Imperialart/events{/privacy}","received_events_url":"https://api.github.com/users/Imperialart/received_events","type":"User","site_admin":false},"repo":{"id":39559766,"name":"ScrumTeamOne","full_name":"Imperialart/ScrumTeamOne","owner":{"login":"Imperialart","id":11672384,"avatar_url":"https://avatars.githubusercontent.com/u/11672384?v=3","gravatar_id":"","url":"https://api.github.com/users/Imperialart","html_url":"https://github.com/Imperialart","followers_url":"https://api.github.com/users/Imperialart/followers","following_url":"https://api.github.com/users/Imperialart/following{/other_user}","gists_url":"https://api.github.com/users/Imperialart/gists{/gist_id}","starred_url":"https://api.github.com/users/Imperialart/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Imperialart/subscriptions","organizations_url":"https://api.github.com/users/Imperialart/orgs","repos_url":"https://api.github.com/users/Imperialart/repos","events_url":"https://api.github.com/users/Imperialart/events{/privacy}","received_events_url":"https://api.github.com/users/Imperialart/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Imperialart/ScrumTeamOne","description":"","fork":false,"url":"https://api.github.com/repos/Imperialart/ScrumTeamOne","forks_url":"https://api.github.com/repos/Imperialart/ScrumTeamOne/forks","keys_url":"https://api.github.com/repos/Imperialart/ScrumTeamOne/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Imperialart/ScrumTeamOne/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Imperialart/ScrumTeamOne/teams","hooks_url":"https://api.github.com/repos/Imperialart/ScrumTeamOne/hooks","issue_events_url":"https://api.github.com/repos/Imperialart/ScrumTeamOne/issues/events{/number}","events_url":"https://api.github.com/repos/Imperialart/ScrumTeamOne/events","assignees_url":"https://api.github.com/repos/Imperialart/ScrumTeamOne/assignees{/user}","branches_url":"https://api.github.com/repos/Imperialart/ScrumTeamOne/branches{/branch}","tags_url":"https://api.github.com/repos/Imperialart/ScrumTeamOne/tags","blobs_url":"https://api.github.com/repos/Imperialart/ScrumTeamOne/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Imperialart/ScrumTeamOne/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Imperialart/ScrumTeamOne/git/refs{/sha}","trees_url":"https://api.github.com/repos/Imperialart/ScrumTeamOne/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Imperialart/ScrumTeamOne/statuses/{sha}","languages_url":"https://api.github.com/repos/Imperialart/ScrumTeamOne/languages","stargazers_url":"https://api.github.com/repos/Imperialart/ScrumTeamOne/stargazers","contributors_url":"https://api.github.com/repos/Imperialart/ScrumTeamOne/contributors","subscribers_url":"https://api.github.com/repos/Imperialart/ScrumTeamOne/subscribers","subscription_url":"https://api.github.com/repos/Imperialart/ScrumTeamOne/subscription","commits_url":"https://api.github.com/repos/Imperialart/ScrumTeamOne/commits{/sha}","git_commits_url":"https://api.github.com/repos/Imperialart/ScrumTeamOne/git/commits{/sha}","comments_url":"https://api.github.com/repos/Imperialart/ScrumTeamOne/comments{/number}","issue_comment_url":"https://api.github.com/repos/Imperialart/ScrumTeamOne/issues/comments{/number}","contents_url":"https://api.github.com/repos/Imperialart/ScrumTeamOne/contents/{+path}","compare_url":"https://api.github.com/repos/Imperialart/ScrumTeamOne/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Imperialart/ScrumTeamOne/merges","archive_url":"https://api.github.com/repos/Imperialart/ScrumTeamOne/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Imperialart/ScrumTeamOne/downloads","issues_url":"https://api.github.com/repos/Imperialart/ScrumTeamOne/issues{/number}","pulls_url":"https://api.github.com/repos/Imperialart/ScrumTeamOne/pulls{/number}","milestones_url":"https://api.github.com/repos/Imperialart/ScrumTeamOne/milestones{/number}","notifications_url":"https://api.github.com/repos/Imperialart/ScrumTeamOne/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Imperialart/ScrumTeamOne/labels{/name}","releases_url":"https://api.github.com/repos/Imperialart/ScrumTeamOne/releases{/id}","created_at":"2015-07-23T09:59:00Z","updated_at":"2015-07-23T15:09:55Z","pushed_at":"2015-07-27T11:10:49Z","git_url":"git://github.com/Imperialart/ScrumTeamOne.git","ssh_url":"git@github.com:Imperialart/ScrumTeamOne.git","clone_url":"https://github.com/Imperialart/ScrumTeamOne.git","svn_url":"https://github.com/Imperialart/ScrumTeamOne","homepage":null,"size":316,"stargazers_count":1,"watchers_count":1,"language":"Objective-C","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":1,"default_branch":"master"}},"base":{"label":"Imperialart:dev","ref":"dev","sha":"9b36c506ad4ad52925313d3afa344ba143c3cdcc","user":{"login":"Imperialart","id":11672384,"avatar_url":"https://avatars.githubusercontent.com/u/11672384?v=3","gravatar_id":"","url":"https://api.github.com/users/Imperialart","html_url":"https://github.com/Imperialart","followers_url":"https://api.github.com/users/Imperialart/followers","following_url":"https://api.github.com/users/Imperialart/following{/other_user}","gists_url":"https://api.github.com/users/Imperialart/gists{/gist_id}","starred_url":"https://api.github.com/users/Imperialart/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Imperialart/subscriptions","organizations_url":"https://api.github.com/users/Imperialart/orgs","repos_url":"https://api.github.com/users/Imperialart/repos","events_url":"https://api.github.com/users/Imperialart/events{/privacy}","received_events_url":"https://api.github.com/users/Imperialart/received_events","type":"User","site_admin":false},"repo":{"id":39559766,"name":"ScrumTeamOne","full_name":"Imperialart/ScrumTeamOne","owner":{"login":"Imperialart","id":11672384,"avatar_url":"https://avatars.githubusercontent.com/u/11672384?v=3","gravatar_id":"","url":"https://api.github.com/users/Imperialart","html_url":"https://github.com/Imperialart","followers_url":"https://api.github.com/users/Imperialart/followers","following_url":"https://api.github.com/users/Imperialart/following{/other_user}","gists_url":"https://api.github.com/users/Imperialart/gists{/gist_id}","starred_url":"https://api.github.com/users/Imperialart/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Imperialart/subscriptions","organizations_url":"https://api.github.com/users/Imperialart/orgs","repos_url":"https://api.github.com/users/Imperialart/repos","events_url":"https://api.github.com/users/Imperialart/events{/privacy}","received_events_url":"https://api.github.com/users/Imperialart/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Imperialart/ScrumTeamOne","description":"","fork":false,"url":"https://api.github.com/repos/Imperialart/ScrumTeamOne","forks_url":"https://api.github.com/repos/Imperialart/ScrumTeamOne/forks","keys_url":"https://api.github.com/repos/Imperialart/ScrumTeamOne/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Imperialart/ScrumTeamOne/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Imperialart/ScrumTeamOne/teams","hooks_url":"https://api.github.com/repos/Imperialart/ScrumTeamOne/hooks","issue_events_url":"https://api.github.com/repos/Imperialart/ScrumTeamOne/issues/events{/number}","events_url":"https://api.github.com/repos/Imperialart/ScrumTeamOne/events","assignees_url":"https://api.github.com/repos/Imperialart/ScrumTeamOne/assignees{/user}","branches_url":"https://api.github.com/repos/Imperialart/ScrumTeamOne/branches{/branch}","tags_url":"https://api.github.com/repos/Imperialart/ScrumTeamOne/tags","blobs_url":"https://api.github.com/repos/Imperialart/ScrumTeamOne/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Imperialart/ScrumTeamOne/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Imperialart/ScrumTeamOne/git/refs{/sha}","trees_url":"https://api.github.com/repos/Imperialart/ScrumTeamOne/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Imperialart/ScrumTeamOne/statuses/{sha}","languages_url":"https://api.github.com/repos/Imperialart/ScrumTeamOne/languages","stargazers_url":"https://api.github.com/repos/Imperialart/ScrumTeamOne/stargazers","contributors_url":"https://api.github.com/repos/Imperialart/ScrumTeamOne/contributors","subscribers_url":"https://api.github.com/repos/Imperialart/ScrumTeamOne/subscribers","subscription_url":"https://api.github.com/repos/Imperialart/ScrumTeamOne/subscription","commits_url":"https://api.github.com/repos/Imperialart/ScrumTeamOne/commits{/sha}","git_commits_url":"https://api.github.com/repos/Imperialart/ScrumTeamOne/git/commits{/sha}","comments_url":"https://api.github.com/repos/Imperialart/ScrumTeamOne/comments{/number}","issue_comment_url":"https://api.github.com/repos/Imperialart/ScrumTeamOne/issues/comments{/number}","contents_url":"https://api.github.com/repos/Imperialart/ScrumTeamOne/contents/{+path}","compare_url":"https://api.github.com/repos/Imperialart/ScrumTeamOne/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Imperialart/ScrumTeamOne/merges","archive_url":"https://api.github.com/repos/Imperialart/ScrumTeamOne/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Imperialart/ScrumTeamOne/downloads","issues_url":"https://api.github.com/repos/Imperialart/ScrumTeamOne/issues{/number}","pulls_url":"https://api.github.com/repos/Imperialart/ScrumTeamOne/pulls{/number}","milestones_url":"https://api.github.com/repos/Imperialart/ScrumTeamOne/milestones{/number}","notifications_url":"https://api.github.com/repos/Imperialart/ScrumTeamOne/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Imperialart/ScrumTeamOne/labels{/name}","releases_url":"https://api.github.com/repos/Imperialart/ScrumTeamOne/releases{/id}","created_at":"2015-07-23T09:59:00Z","updated_at":"2015-07-23T15:09:55Z","pushed_at":"2015-07-27T11:10:49Z","git_url":"git://github.com/Imperialart/ScrumTeamOne.git","ssh_url":"git@github.com:Imperialart/ScrumTeamOne.git","clone_url":"https://github.com/Imperialart/ScrumTeamOne.git","svn_url":"https://github.com/Imperialart/ScrumTeamOne","homepage":null,"size":316,"stargazers_count":1,"watchers_count":1,"language":"Objective-C","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Imperialart/ScrumTeamOne/pulls/4"},"html":{"href":"https://github.com/Imperialart/ScrumTeamOne/pull/4"},"issue":{"href":"https://api.github.com/repos/Imperialart/ScrumTeamOne/issues/4"},"comments":{"href":"https://api.github.com/repos/Imperialart/ScrumTeamOne/issues/4/comments"},"review_comments":{"href":"https://api.github.com/repos/Imperialart/ScrumTeamOne/pulls/4/comments"},"review_comment":{"href":"https://api.github.com/repos/Imperialart/ScrumTeamOne/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Imperialart/ScrumTeamOne/pulls/4/commits"},"statuses":{"href":"https://api.github.com/repos/Imperialart/ScrumTeamOne/statuses/c0b370c77ffa2e781290577c57ff67a272fa1514"}}}}