{"action":"created","issue":{"url":"https://api.github.com/repos/andygrunwald/go-jira/issues/51","repository_url":"https://api.github.com/repos/andygrunwald/go-jira","labels_url":"https://api.github.com/repos/andygrunwald/go-jira/issues/51/labels{/name}","comments_url":"https://api.github.com/repos/andygrunwald/go-jira/issues/51/comments","events_url":"https://api.github.com/repos/andygrunwald/go-jira/issues/51/events","html_url":"https://github.com/andygrunwald/go-jira/pull/51","id":191131335,"number":51,"title":"Fix User.GET() method","user":{"login":"pmoncadaisla","id":1449482,"avatar_url":"https://avatars.githubusercontent.com/u/1449482?v=3","gravatar_id":"","url":"https://api.github.com/users/pmoncadaisla","html_url":"https://github.com/pmoncadaisla","followers_url":"https://api.github.com/users/pmoncadaisla/followers","following_url":"https://api.github.com/users/pmoncadaisla/following{/other_user}","gists_url":"https://api.github.com/users/pmoncadaisla/gists{/gist_id}","starred_url":"https://api.github.com/users/pmoncadaisla/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pmoncadaisla/subscriptions","organizations_url":"https://api.github.com/users/pmoncadaisla/orgs","repos_url":"https://api.github.com/users/pmoncadaisla/repos","events_url":"https://api.github.com/users/pmoncadaisla/events{/privacy}","received_events_url":"https://api.github.com/users/pmoncadaisla/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-11-22T21:39:54Z","updated_at":"2016-11-22T22:11:13Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/andygrunwald/go-jira/pulls/51","html_url":"https://github.com/andygrunwald/go-jira/pull/51","diff_url":"https://github.com/andygrunwald/go-jira/pull/51.diff","patch_url":"https://github.com/andygrunwald/go-jira/pull/51.patch"},"body":"According to https://docs.atlassian.com/jira/REST/cloud/#api/2/user-getUser username must be provided as a query string parameter"},"comment":{"url":"https://api.github.com/repos/andygrunwald/go-jira/issues/comments/262381153","html_url":"https://github.com/andygrunwald/go-jira/pull/51#issuecomment-262381153","issue_url":"https://api.github.com/repos/andygrunwald/go-jira/issues/51","id":262381153,"user":{"login":"javierprovecho","id":2457529,"avatar_url":"https://avatars.githubusercontent.com/u/2457529?v=3","gravatar_id":"","url":"https://api.github.com/users/javierprovecho","html_url":"https://github.com/javierprovecho","followers_url":"https://api.github.com/users/javierprovecho/followers","following_url":"https://api.github.com/users/javierprovecho/following{/other_user}","gists_url":"https://api.github.com/users/javierprovecho/gists{/gist_id}","starred_url":"https://api.github.com/users/javierprovecho/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/javierprovecho/subscriptions","organizations_url":"https://api.github.com/users/javierprovecho/orgs","repos_url":"https://api.github.com/users/javierprovecho/repos","events_url":"https://api.github.com/users/javierprovecho/events{/privacy}","received_events_url":"https://api.github.com/users/javierprovecho/received_events","type":"User","site_admin":false},"created_at":"2016-11-22T22:11:12Z","updated_at":"2016-11-22T22:11:12Z","body":"@pmoncadaisla @andygrunwald test fails because mock http server is not defined correctly in https://github.com/andygrunwald/go-jira/blob/master/user_test.go#L12-L14\r\n\r\n```go\r\n...\r\n\ttestMux.HandleFunc(\"/rest/api/2/user\", func(w http.ResponseWriter, r *http.Request) {\r\n\t\ttestMethod(t, r, \"GET\")\r\n\t\ttestRequestURL(t, r, \"/rest/api/2/user?username=fred\")\r\n...\r\n```\r\n\r\nIt's funny because the object returned was already wrong. https://github.com/andygrunwald/go-jira/blob/master/user_test.go#L16 shows that `self` is following Atlasian docs."}}
{"actor":{"display_login":"javierprovecho"}}