{"action":"opened","issue":{"url":"https://api.github.com/repos/sumoheavy/jira-ruby/issues/177","repository_url":"https://api.github.com/repos/sumoheavy/jira-ruby","labels_url":"https://api.github.com/repos/sumoheavy/jira-ruby/issues/177/labels{/name}","comments_url":"https://api.github.com/repos/sumoheavy/jira-ruby/issues/177/comments","events_url":"https://api.github.com/repos/sumoheavy/jira-ruby/issues/177/events","html_url":"https://github.com/sumoheavy/jira-ruby/issues/177","id":176489069,"number":177,"title":"JIRA::HTTPError: Bad Request when using `\"\\t\"` in exact matching on summary","user":{"login":"a-leung","id":1755768,"avatar_url":"https://avatars.githubusercontent.com/u/1755768?v=3","gravatar_id":"","url":"https://api.github.com/users/a-leung","html_url":"https://github.com/a-leung","followers_url":"https://api.github.com/users/a-leung/followers","following_url":"https://api.github.com/users/a-leung/following{/other_user}","gists_url":"https://api.github.com/users/a-leung/gists{/gist_id}","starred_url":"https://api.github.com/users/a-leung/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/a-leung/subscriptions","organizations_url":"https://api.github.com/users/a-leung/orgs","repos_url":"https://api.github.com/users/a-leung/repos","events_url":"https://api.github.com/users/a-leung/events{/privacy}","received_events_url":"https://api.github.com/users/a-leung/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-09-12T21:26:02Z","updated_at":"2016-09-12T21:26:02Z","closed_at":null,"body":"When doing a JQL query using the exact summary matcher `summary ~`, tab characters `\"\\t\"`, causes a `JIRA::HTTPError: Bad Request`.\r\n\r\n````ruby\r\nissue_string = 'summary ~ \"\\\"' + \"\\t\" + '\\\"\"'\r\nclient.Issue.jql(issue_string)\r\n# => JIRA::HTTPError: Bad Request\r\n````\r\n\r\nwhere as the REST API will return the proper response:\r\n\r\n````ruby\r\njira_search_url = \"https://<jira site>.atlassian.net/rest/api/2/search?jql=\" + issue_string\r\nHTTParty.get(jira_search_url, basic_auth: auth, headers: headers) \r\n# => {\"startAt\"=>0, \"maxResults\"=>50, \"total\"=>0, \"issues\"=>[]}\r\n````\r\n\r\nwhereas with `\"\\n\"` returns the correct response from the gem:\r\n\r\n````ruby\r\nissue_string = 'summary ~ \"\\\"' + \"\\n\" + '\\\"\"'\r\nclient.Issue.jql(issue_string)\r\n# => []\r\n````\r\n\r\nany ideas on this?\r\n\r\nThanks for the great gem!"}}
{"actor":{"display_login":"a-leung"}}