{"action":"created","issue":{"url":"https://api.github.com/repos/nathanvda/cocoon/issues/259","labels_url":"https://api.github.com/repos/nathanvda/cocoon/issues/259/labels{/name}","comments_url":"https://api.github.com/repos/nathanvda/cocoon/issues/259/comments","events_url":"https://api.github.com/repos/nathanvda/cocoon/issues/259/events","html_url":"https://github.com/nathanvda/cocoon/issues/259","id":54719844,"number":259,"title":"Add association programmatically?","user":{"login":"howells","id":145849,"avatar_url":"https://avatars.githubusercontent.com/u/145849?v=3","gravatar_id":"","url":"https://api.github.com/users/howells","html_url":"https://github.com/howells","followers_url":"https://api.github.com/users/howells/followers","following_url":"https://api.github.com/users/howells/following{/other_user}","gists_url":"https://api.github.com/users/howells/gists{/gist_id}","starred_url":"https://api.github.com/users/howells/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/howells/subscriptions","organizations_url":"https://api.github.com/users/howells/orgs","repos_url":"https://api.github.com/users/howells/repos","events_url":"https://api.github.com/users/howells/events{/privacy}","received_events_url":"https://api.github.com/users/howells/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-01-19T02:09:08Z","updated_at":"2015-01-19T02:14:02Z","closed_at":null,"body":"I could be missing something obvious here, but how might I add an association programmatically rather than on a click event? (In my case I am prepopulating data and need to be able to add multiple associations without the user having to do anything)."},"comment":{"url":"https://api.github.com/repos/nathanvda/cocoon/issues/comments/70438689","html_url":"https://github.com/nathanvda/cocoon/issues/259#issuecomment-70438689","issue_url":"https://api.github.com/repos/nathanvda/cocoon/issues/259","id":70438689,"user":{"login":"simi","id":193936,"avatar_url":"https://avatars.githubusercontent.com/u/193936?v=3","gravatar_id":"","url":"https://api.github.com/users/simi","html_url":"https://github.com/simi","followers_url":"https://api.github.com/users/simi/followers","following_url":"https://api.github.com/users/simi/following{/other_user}","gists_url":"https://api.github.com/users/simi/gists{/gist_id}","starred_url":"https://api.github.com/users/simi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/simi/subscriptions","organizations_url":"https://api.github.com/users/simi/orgs","repos_url":"https://api.github.com/users/simi/repos","events_url":"https://api.github.com/users/simi/events{/privacy}","received_events_url":"https://api.github.com/users/simi/received_events","type":"User","site_admin":false},"created_at":"2015-01-19T02:14:02Z","updated_at":"2015-01-19T02:14:02Z","body":"You mean before page is rendered?"}}