{"action":"created","issue":{"url":"https://api.github.com/repos/e-government-ua/i/issues/809","labels_url":"https://api.github.com/repos/e-government-ua/i/issues/809/labels{/name}","comments_url":"https://api.github.com/repos/e-government-ua/i/issues/809/comments","events_url":"https://api.github.com/repos/e-government-ua/i/issues/809/events","html_url":"https://github.com/e-government-ua/i/issues/809","id":107364924,"number":809,"title":"На бэке (wf-region), создать сервис ОТВЕТА по полям, требующих уточнения","user":{"login":"bvv4ik","id":4208821,"avatar_url":"https://avatars.githubusercontent.com/u/4208821?v=3","gravatar_id":"","url":"https://api.github.com/users/bvv4ik","html_url":"https://github.com/bvv4ik","followers_url":"https://api.github.com/users/bvv4ik/followers","following_url":"https://api.github.com/users/bvv4ik/following{/other_user}","gists_url":"https://api.github.com/users/bvv4ik/gists{/gist_id}","starred_url":"https://api.github.com/users/bvv4ik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bvv4ik/subscriptions","organizations_url":"https://api.github.com/users/bvv4ik/orgs","repos_url":"https://api.github.com/users/bvv4ik/repos","events_url":"https://api.github.com/users/bvv4ik/events{/privacy}","received_events_url":"https://api.github.com/users/bvv4ik/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/e-government-ua/i/labels/active","name":"active","color":"eb6420"}],"state":"open","locked":false,"assignee":{"login":"ASkosyr","id":12980290,"avatar_url":"https://avatars.githubusercontent.com/u/12980290?v=3","gravatar_id":"","url":"https://api.github.com/users/ASkosyr","html_url":"https://github.com/ASkosyr","followers_url":"https://api.github.com/users/ASkosyr/followers","following_url":"https://api.github.com/users/ASkosyr/following{/other_user}","gists_url":"https://api.github.com/users/ASkosyr/gists{/gist_id}","starred_url":"https://api.github.com/users/ASkosyr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ASkosyr/subscriptions","organizations_url":"https://api.github.com/users/ASkosyr/orgs","repos_url":"https://api.github.com/users/ASkosyr/repos","events_url":"https://api.github.com/users/ASkosyr/events{/privacy}","received_events_url":"https://api.github.com/users/ASkosyr/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/e-government-ua/i/milestones/5","html_url":"https://github.com/e-government-ua/i/milestones/BackEnd-REST-Activiti_Java","labels_url":"https://api.github.com/repos/e-government-ua/i/milestones/5/labels","id":1063352,"number":5,"title":"BackEnd-REST-Activiti_Java","description":"Разработка кастомных общих API/REST, которые вначале позволят реализовывать  нужные нам сервисы по авторизации(и не только), а потом станут общей-единой точкой входа, включающую текущие REST Activiti","creator":{"login":"bvv4ik","id":4208821,"avatar_url":"https://avatars.githubusercontent.com/u/4208821?v=3","gravatar_id":"","url":"https://api.github.com/users/bvv4ik","html_url":"https://github.com/bvv4ik","followers_url":"https://api.github.com/users/bvv4ik/followers","following_url":"https://api.github.com/users/bvv4ik/following{/other_user}","gists_url":"https://api.github.com/users/bvv4ik/gists{/gist_id}","starred_url":"https://api.github.com/users/bvv4ik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bvv4ik/subscriptions","organizations_url":"https://api.github.com/users/bvv4ik/orgs","repos_url":"https://api.github.com/users/bvv4ik/repos","events_url":"https://api.github.com/users/bvv4ik/events{/privacy}","received_events_url":"https://api.github.com/users/bvv4ik/received_events","type":"User","site_admin":false},"open_issues":24,"closed_issues":117,"state":"open","created_at":"2015-04-11T19:27:45Z","updated_at":"2015-09-28T08:06:52Z","due_on":null,"closed_at":null},"comments":2,"created_at":"2015-09-20T00:55:54Z","updated_at":"2015-09-28T08:08:38Z","closed_at":null,"body":"- [x] 1) Метод setTaskAnswer\r\n\r\n- [x] 2) параметры:\r\n- [x] 2.1) saField - строка-массива полей (например: \"[{'id':'sFamily','type':'string','value':'Белявцев'},{'id':'nAge','type':'long','value':35}]\")\r\n- [x] 2.2) nID_Protected - номер-ИД заявки (защищенный)\r\n- [x] 2.3) sBody - строка тела сообщения //опциональный (если не задан, то пустота)\r\n- [x] 2.4) sToken - строка-токена\r\n\r\n- [x] 3) при вызове сервиса:\r\n- [x] 3.1) Находить в сущности HistoryEvent_Service нужную запись (по сервису)\r\n- [x] 3.2) сверять токен, и\r\n- [x] 3.2.1) если он в сущности он указан но не совпадает с переданным, позвращать эксепшин \"Token wrong\"\r\n- [x] 3.2.2) если он в сущности он не указан (null), позвращать эксепшин \"Token absant\"\r\n- [x] 3.3) Находить на региональном портале таску и сетить в глобальную переменную\r\n- [x] 3.4) в найденную таску (по nID_Protected) \r\n- [ ] 3.4.1) сетить в глобальную переменную sAnswer - содержимое sBody\r\n- [ ] 3.4.2) сетить в каждое из полей из saField - эти новые значения\r\n- [ ] 3.5) в сущности HistoryEvent_Service обновлять\r\n- [ ] 3.5.1) поле soData значением из saField\r\n- [ ] 3.5.2) поле sToken значением null\r\n\r\n- [ ] 4) Обязательно сохранять информацию о действии в Мой Журнал\r\nТекст: На заявку №____ дан ответ гражданином: %sBody%\r\n + перечисление полей из saField в формате таблицы:\r\n\r\nПоле / Тип / Текущее значение\r\n\r\n- [ ] 5) Описать это все в доке на Вики (АПИ)\r\n\r\nП.С.: в п.3 важно соблюсти именно эту последовательность действий"},"comment":{"url":"https://api.github.com/repos/e-government-ua/i/issues/comments/143667366","html_url":"https://github.com/e-government-ua/i/issues/809#issuecomment-143667366","issue_url":"https://api.github.com/repos/e-government-ua/i/issues/809","id":143667366,"user":{"login":"ASkosyr","id":12980290,"avatar_url":"https://avatars.githubusercontent.com/u/12980290?v=3","gravatar_id":"","url":"https://api.github.com/users/ASkosyr","html_url":"https://github.com/ASkosyr","followers_url":"https://api.github.com/users/ASkosyr/followers","following_url":"https://api.github.com/users/ASkosyr/following{/other_user}","gists_url":"https://api.github.com/users/ASkosyr/gists{/gist_id}","starred_url":"https://api.github.com/users/ASkosyr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ASkosyr/subscriptions","organizations_url":"https://api.github.com/users/ASkosyr/orgs","repos_url":"https://api.github.com/users/ASkosyr/repos","events_url":"https://api.github.com/users/ASkosyr/events{/privacy}","received_events_url":"https://api.github.com/users/ASkosyr/received_events","type":"User","site_admin":false},"created_at":"2015-09-28T08:08:38Z","updated_at":"2015-09-28T08:08:38Z","body":"проверил - еще в тест рано\r\nпосле setTaskQuestions не сохраняет токен в HistoryEvent\r\n\r\nсоответственно у меня летит ошибка Token is absent"}}