{"action":"opened","issue":{"url":"https://api.github.com/repos/Coolchick1/wardrobe/issues/2","labels_url":"https://api.github.com/repos/Coolchick1/wardrobe/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/Coolchick1/wardrobe/issues/2/comments","events_url":"https://api.github.com/repos/Coolchick1/wardrobe/issues/2/events","html_url":"https://github.com/Coolchick1/wardrobe/issues/2","id":80079391,"number":2,"title":"Supply userId when adding new clothing item","user":{"login":"philiplourandos","id":1639462,"avatar_url":"https://avatars.githubusercontent.com/u/1639462?v=3","gravatar_id":"","url":"https://api.github.com/users/philiplourandos","html_url":"https://github.com/philiplourandos","followers_url":"https://api.github.com/users/philiplourandos/followers","following_url":"https://api.github.com/users/philiplourandos/following{/other_user}","gists_url":"https://api.github.com/users/philiplourandos/gists{/gist_id}","starred_url":"https://api.github.com/users/philiplourandos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/philiplourandos/subscriptions","organizations_url":"https://api.github.com/users/philiplourandos/orgs","repos_url":"https://api.github.com/users/philiplourandos/repos","events_url":"https://api.github.com/users/philiplourandos/events{/privacy}","received_events_url":"https://api.github.com/users/philiplourandos/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-05-24T07:13:52Z","updated_at":"2015-05-24T07:13:52Z","closed_at":null,"body":"Yesterday we hardcoded the userId for the Clothing item. We need to use the current logged in users id.\r\n\r\n* We need to change the method 'addButtonActionPerformed' in the class 'AddingFrame '. Where we call 'newItem.setUserID(1)' we need to use the 'LoggedInUser' object to retrieve the id from the user that has been set there."}}