sumoheavy / jira-ruby

A Ruby gem for the JIRA REST API
MIT License
656 stars 411 forks source link

Bad Request error when saving a new issue or iterating projects #281

Open johnmccrae opened 6 years ago

johnmccrae commented 6 years ago

I have a strange issue. I am able to connect to Jira via http basic or cookies auth. Both return valid data with either of these commands:

project = client.Project.find('HELP') ticket = client.Issue.build

The problem is then I try to create a new support ticket using ticket.save I get a Bad Request error. What am I doing wrong please? I have already remove the trailing backslash from the site url in my options. What else should I be looking for?

Cheers John

jeremypiednoel commented 5 years ago

Hi @johnmccrae i have the same issue i'm able to connect / fetch an issue but when i try to save the issue i receive a {"class"=>"Net::HTTPBadRequest", "code"=>"400", "message"=>"Bad Request"}