{"action":"closed","issue":{"url":"https://api.github.com/repos/mpociot/teamwork/issues/3","labels_url":"https://api.github.com/repos/mpociot/teamwork/issues/3/labels{/name}","comments_url":"https://api.github.com/repos/mpociot/teamwork/issues/3/comments","events_url":"https://api.github.com/repos/mpociot/teamwork/issues/3/events","html_url":"https://github.com/mpociot/teamwork/issues/3","id":98729312,"number":3,"title":"When set current_team_id just create entry in team_user pivot table","user":{"login":"ziming","id":679513,"avatar_url":"https://avatars.githubusercontent.com/u/679513?v=3","gravatar_id":"","url":"https://api.github.com/users/ziming","html_url":"https://github.com/ziming","followers_url":"https://api.github.com/users/ziming/followers","following_url":"https://api.github.com/users/ziming/following{/other_user}","gists_url":"https://api.github.com/users/ziming/gists{/gist_id}","starred_url":"https://api.github.com/users/ziming/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ziming/subscriptions","organizations_url":"https://api.github.com/users/ziming/orgs","repos_url":"https://api.github.com/users/ziming/repos","events_url":"https://api.github.com/users/ziming/events{/privacy}","received_events_url":"https://api.github.com/users/ziming/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-08-03T12:03:36Z","updated_at":"2015-08-03T18:35:39Z","closed_at":"2015-08-03T18:35:39Z","body":"Hi,\r\n\r\nI think it may be good if by doing $user->current_team_id = 5;\r\n\r\nAn appropriate record in team_user pivot is created if it previously did not exist."}}