{"action":"opened","issue":{"url":"https://api.github.com/repos/systemo-biz/casepress/issues/21","labels_url":"https://api.github.com/repos/systemo-biz/casepress/issues/21/labels{/name}","comments_url":"https://api.github.com/repos/systemo-biz/casepress/issues/21/comments","events_url":"https://api.github.com/repos/systemo-biz/casepress/issues/21/events","html_url":"https://github.com/systemo-biz/casepress/issues/21","id":89563965,"number":21,"title":"Добавить метабокс Организация для Персон","user":{"login":"yumashev","id":1852897,"avatar_url":"https://avatars.githubusercontent.com/u/1852897?v=3","gravatar_id":"","url":"https://api.github.com/users/yumashev","html_url":"https://github.com/yumashev","followers_url":"https://api.github.com/users/yumashev/followers","following_url":"https://api.github.com/users/yumashev/following{/other_user}","gists_url":"https://api.github.com/users/yumashev/gists{/gist_id}","starred_url":"https://api.github.com/users/yumashev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yumashev/subscriptions","organizations_url":"https://api.github.com/users/yumashev/orgs","repos_url":"https://api.github.com/users/yumashev/repos","events_url":"https://api.github.com/users/yumashev/events{/privacy}","received_events_url":"https://api.github.com/users/yumashev/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/systemo-biz/casepress/labels/smallfix","name":"smallfix","color":"fbca04"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-06-19T13:23:31Z","updated_at":"2015-06-19T13:23:31Z","closed_at":null,"body":"- делаем отдельным файлом php\r\n- метабокс должен быть добавлен для типа поста Персона\r\n- поле типа Select2 с AJAX. Если организацию выбрали, то сохраняем ее ИД в мету cp_organization_id.\r\n- под полем сделать чекбокс \"Добавить организацию\"\r\n- если чек бокс отмечен, то показываем поле \"Название организации\" как текст и поле \"Описание\" как поле текста чтобы ввести заметку. При сохранении добавляем организацию в посты и записываем ее id в метаполе cp_organization_id"}}