{"action":"created","issue":{"url":"https://api.github.com/repos/FWAJL/FieldWorkAssistantMVC/issues/804","labels_url":"https://api.github.com/repos/FWAJL/FieldWorkAssistantMVC/issues/804/labels{/name}","comments_url":"https://api.github.com/repos/FWAJL/FieldWorkAssistantMVC/issues/804/comments","events_url":"https://api.github.com/repos/FWAJL/FieldWorkAssistantMVC/issues/804/events","html_url":"https://github.com/FWAJL/FieldWorkAssistantMVC/issues/804","id":66259894,"number":804,"title":"Discussion Thread Milestone B(2) - Display message from Field Technician","user":{"login":"bsaiken","id":8228624,"avatar_url":"https://avatars.githubusercontent.com/u/8228624?v=3","gravatar_id":"","url":"https://api.github.com/users/bsaiken","html_url":"https://github.com/bsaiken","followers_url":"https://api.github.com/users/bsaiken/followers","following_url":"https://api.github.com/users/bsaiken/following{/other_user}","gists_url":"https://api.github.com/users/bsaiken/gists{/gist_id}","starred_url":"https://api.github.com/users/bsaiken/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bsaiken/subscriptions","organizations_url":"https://api.github.com/users/bsaiken/orgs","repos_url":"https://api.github.com/users/bsaiken/repos","events_url":"https://api.github.com/users/bsaiken/events{/privacy}","received_events_url":"https://api.github.com/users/bsaiken/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/FWAJL/FieldWorkAssistantMVC/labels/priority:high","name":"priority:high","color":"eb6420"},{"url":"https://api.github.com/repos/FWAJL/FieldWorkAssistantMVC/labels/status:in%20dev","name":"status:in dev","color":"0052cc"}],"state":"open","locked":false,"assignee":{"login":"damirius","id":1443969,"avatar_url":"https://avatars.githubusercontent.com/u/1443969?v=3","gravatar_id":"","url":"https://api.github.com/users/damirius","html_url":"https://github.com/damirius","followers_url":"https://api.github.com/users/damirius/followers","following_url":"https://api.github.com/users/damirius/following{/other_user}","gists_url":"https://api.github.com/users/damirius/gists{/gist_id}","starred_url":"https://api.github.com/users/damirius/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/damirius/subscriptions","organizations_url":"https://api.github.com/users/damirius/orgs","repos_url":"https://api.github.com/users/damirius/repos","events_url":"https://api.github.com/users/damirius/events{/privacy}","received_events_url":"https://api.github.com/users/damirius/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/FWAJL/FieldWorkAssistantMVC/milestones/23","html_url":"https://github.com/FWAJL/FieldWorkAssistantMVC/milestones/Discussion%20Thread","labels_url":"https://api.github.com/repos/FWAJL/FieldWorkAssistantMVC/milestones/23/labels","id":1011059,"number":23,"title":"Discussion Thread","description":"","creator":{"login":"bsaiken","id":8228624,"avatar_url":"https://avatars.githubusercontent.com/u/8228624?v=3","gravatar_id":"","url":"https://api.github.com/users/bsaiken","html_url":"https://github.com/bsaiken","followers_url":"https://api.github.com/users/bsaiken/followers","following_url":"https://api.github.com/users/bsaiken/following{/other_user}","gists_url":"https://api.github.com/users/bsaiken/gists{/gist_id}","starred_url":"https://api.github.com/users/bsaiken/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bsaiken/subscriptions","organizations_url":"https://api.github.com/users/bsaiken/orgs","repos_url":"https://api.github.com/users/bsaiken/repos","events_url":"https://api.github.com/users/bsaiken/events{/privacy}","received_events_url":"https://api.github.com/users/bsaiken/received_events","type":"User","site_admin":false},"open_issues":7,"closed_issues":2,"state":"open","created_at":"2015-03-08T04:46:28Z","updated_at":"2015-04-16T04:34:09Z","due_on":"2015-04-20T07:00:00Z","closed_at":null},"comments":5,"created_at":"2015-04-04T01:16:50Z","updated_at":"2015-04-25T14:51:45Z","closed_at":null,"body":"Incoming messages, send from the Field Technician, is part of another Job.  The incoming message shall be stored in the message database table.  For testing purposes, we will manually add a Technician message to the database.  \r\n\r\nThe incoming messages shall be stored in the message history (discussion_content table) and the values of the following columns will be:\r\ndiscussion_content_category_type (e.g. pm_id) \r\ndiscussion_content_category_value (id value of the discussion_content_category_type ) \r\n\r\nThe stored message shall appear in the Message window."},"comment":{"url":"https://api.github.com/repos/FWAJL/FieldWorkAssistantMVC/issues/comments/96218278","html_url":"https://github.com/FWAJL/FieldWorkAssistantMVC/issues/804#issuecomment-96218278","issue_url":"https://api.github.com/repos/FWAJL/FieldWorkAssistantMVC/issues/804","id":96218278,"user":{"login":"damirius","id":1443969,"avatar_url":"https://avatars.githubusercontent.com/u/1443969?v=3","gravatar_id":"","url":"https://api.github.com/users/damirius","html_url":"https://github.com/damirius","followers_url":"https://api.github.com/users/damirius/followers","following_url":"https://api.github.com/users/damirius/following{/other_user}","gists_url":"https://api.github.com/users/damirius/gists{/gist_id}","starred_url":"https://api.github.com/users/damirius/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/damirius/subscriptions","organizations_url":"https://api.github.com/users/damirius/orgs","repos_url":"https://api.github.com/users/damirius/repos","events_url":"https://api.github.com/users/damirius/events{/privacy}","received_events_url":"https://api.github.com/users/damirius/received_events","type":"User","site_admin":false},"created_at":"2015-04-25T14:51:45Z","updated_at":"2015-04-25T14:51:45Z","body":"@bsaiken @FWAJL \r\n\r\nI've added chatbox on communication tab of active task view.\r\nSince we changed the discussion table structure, I'll try to explain here how to add new \"incoming\" message.\r\nGo to task list and choose some active task to view. Go on communications tab.\r\nCheck your `discussion` table in the DB. If there are some existing discussions they will be stored there.\r\nGo back in your browser, choose service or FT from the list and click on the promote arrow to set it as the current discussion.\r\nGo back to DB, you should see new discussion entry if this is the first time you started discussion between you (pm) and chosen FT/Service user. Remember `discussion_id` for that entry!\r\nGo to `discussion_person` table, you should find two new entries for the new discussion, you can check them by `discussion_id`, you'll see that they have `user_id` fields. One of those two is the user_id of the PM, which is the author, you can see by checking `discussion_person_is_author` field. If it is set to 1, then that person is the PM for that Task.\r\nSo take a look at other of the two users (by checking discussion_id), write down `discussion_person_id`.\r\nGo to `discussion_content` table, copy that `discussion_person_id` into appropriate field in that table and write the message under `discussion_content_message` field. ID and time fields will be automatically populated. You can add multiple entries if you wish.\r\nGo back to your browser, you should be on the communications tab of active task with the current discussion selected. Refresh the page, you will see chatbox fill up with the messages from the FT/Service user (depending which one you selected). You can try sending them response in the upper text area box. Type whatever you wish and click send, note that maxchar limit in the db is 500.\r\nYou should see your message popping up in the chatbox without page refresh. "}}