Open a-leung opened 8 years ago
When doing a JQL query using the exact summary matcher summary ~, tab characters "\t", causes a JIRA::HTTPError: Bad Request.
summary ~
"\t"
JIRA::HTTPError: Bad Request
issue_string = 'summary ~ "\"' + "\t" + '\""' client.Issue.jql(issue_string) # => JIRA::HTTPError: Bad Request
where as the REST API will return the proper response:
jira_search_url = "https://<jira site>.atlassian.net/rest/api/2/search?jql=" + issue_string HTTParty.get(jira_search_url, basic_auth: auth, headers: headers) # => {"startAt"=>0, "maxResults"=>50, "total"=>0, "issues"=>[]}
whereas with "\n" returns the correct response from the gem:
"\n"
issue_string = 'summary ~ "\"' + "\n" + '\""' client.Issue.jql(issue_string) # => []
any ideas on this?
Thanks for the great gem!
Could it be from Jira? What is the content of the exception?
When doing a JQL query using the exact summary matcher
summary ~
, tab characters"\t"
, causes aJIRA::HTTPError: Bad Request
.where as the REST API will return the proper response:
whereas with
"\n"
returns the correct response from the gem:any ideas on this?
Thanks for the great gem!