{"action":"created","issue":{"url":"https://api.github.com/repos/almighty/almighty-core/issues/151","repository_url":"https://api.github.com/repos/almighty/almighty-core","labels_url":"https://api.github.com/repos/almighty/almighty-core/issues/151/labels{/name}","comments_url":"https://api.github.com/repos/almighty/almighty-core/issues/151/comments","events_url":"https://api.github.com/repos/almighty/almighty-core/issues/151/events","html_url":"https://github.com/almighty/almighty-core/issues/151","id":172673624,"number":151,"title":"Remove WorkItem.Name as a first class citizen from REST API","user":{"login":"aslakknutsen","id":132158,"avatar_url":"https://avatars.githubusercontent.com/u/132158?v=3","gravatar_id":"","url":"https://api.github.com/users/aslakknutsen","html_url":"https://github.com/aslakknutsen","followers_url":"https://api.github.com/users/aslakknutsen/followers","following_url":"https://api.github.com/users/aslakknutsen/following{/other_user}","gists_url":"https://api.github.com/users/aslakknutsen/gists{/gist_id}","starred_url":"https://api.github.com/users/aslakknutsen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aslakknutsen/subscriptions","organizations_url":"https://api.github.com/users/aslakknutsen/orgs","repos_url":"https://api.github.com/users/aslakknutsen/repos","events_url":"https://api.github.com/users/aslakknutsen/events{/privacy}","received_events_url":"https://api.github.com/users/aslakknutsen/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/almighty/almighty-core/labels/enhancement","name":"enhancement","color":"84b6eb"},{"url":"https://api.github.com/repos/almighty/almighty-core/labels/REST","name":"REST","color":"e99695"}],"state":"open","locked":false,"assignee":{"login":"sbose78","id":545280,"avatar_url":"https://avatars.githubusercontent.com/u/545280?v=3","gravatar_id":"","url":"https://api.github.com/users/sbose78","html_url":"https://github.com/sbose78","followers_url":"https://api.github.com/users/sbose78/followers","following_url":"https://api.github.com/users/sbose78/following{/other_user}","gists_url":"https://api.github.com/users/sbose78/gists{/gist_id}","starred_url":"https://api.github.com/users/sbose78/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sbose78/subscriptions","organizations_url":"https://api.github.com/users/sbose78/orgs","repos_url":"https://api.github.com/users/sbose78/repos","events_url":"https://api.github.com/users/sbose78/events{/privacy}","received_events_url":"https://api.github.com/users/sbose78/received_events","type":"User","site_admin":false},"assignees":[{"login":"sbose78","id":545280,"avatar_url":"https://avatars.githubusercontent.com/u/545280?v=3","gravatar_id":"","url":"https://api.github.com/users/sbose78","html_url":"https://github.com/sbose78","followers_url":"https://api.github.com/users/sbose78/followers","following_url":"https://api.github.com/users/sbose78/following{/other_user}","gists_url":"https://api.github.com/users/sbose78/gists{/gist_id}","starred_url":"https://api.github.com/users/sbose78/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sbose78/subscriptions","organizations_url":"https://api.github.com/users/sbose78/orgs","repos_url":"https://api.github.com/users/sbose78/repos","events_url":"https://api.github.com/users/sbose78/events{/privacy}","received_events_url":"https://api.github.com/users/sbose78/received_events","type":"User","site_admin":false}],"milestone":null,"comments":6,"created_at":"2016-08-23T11:20:12Z","updated_at":"2016-08-24T13:33:55Z","closed_at":null,"body":"Name is nothing more than Fields['system.title']"},"comment":{"url":"https://api.github.com/repos/almighty/almighty-core/issues/comments/242065014","html_url":"https://github.com/almighty/almighty-core/issues/151#issuecomment-242065014","issue_url":"https://api.github.com/repos/almighty/almighty-core/issues/151","id":242065014,"user":{"login":"kwk","id":193408,"avatar_url":"https://avatars.githubusercontent.com/u/193408?v=3","gravatar_id":"","url":"https://api.github.com/users/kwk","html_url":"https://github.com/kwk","followers_url":"https://api.github.com/users/kwk/followers","following_url":"https://api.github.com/users/kwk/following{/other_user}","gists_url":"https://api.github.com/users/kwk/gists{/gist_id}","starred_url":"https://api.github.com/users/kwk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kwk/subscriptions","organizations_url":"https://api.github.com/users/kwk/orgs","repos_url":"https://api.github.com/users/kwk/repos","events_url":"https://api.github.com/users/kwk/events{/privacy}","received_events_url":"https://api.github.com/users/kwk/received_events","type":"User","site_admin":false},"created_at":"2016-08-24T13:33:55Z","updated_at":"2016-08-24T13:33:55Z","body":"Please, let me know if you can implement querying JSON fields using the regular gorm `Where` function:\r\n\r\n```go\r\nif r.ts.tx.Where(\"fields={\\\"system.title\\\":?}\", name).First(&res).RecordNotFound() {\r\n     //...\r\n}\r\n```\r\n\r\nThis results in this error: `(pq: syntax error at or near \"{\") `\r\n\r\nI read this document to find out how to query JSON fields: http://schinckel.net/2014/05/25/querying-json-in-postgres/\r\n\r\nSince the error seems to be coming from the `pq` library (used by gorm as a provider) I'm guessing that it might not be implemented in Go yet... "}}
{"actor":{"display_login":"kwk"}}