ac3cloud / roust

Ruby client for Request Tracker's REST API
Other
6 stars 4 forks source link

Refersto field not supported #7

Closed Sarah-E-Greene closed 10 years ago

Sarah-E-Greene commented 10 years ago

I'm unsure if the 'refersto' (or indeed, the other fields under links in RT) is intended to be supported, but it currently does not work:

pry(main)> attrs
=> {"Subject"=>"test subject",
 "Requestors"=>"a@hobbsee.com,b@hobbsee.com",
 "admincc"=>"c@hobbsee.com, d@hobbsee.com",
 "Queue"=>"support",
 "refersto"=>"google.com"}

pry(main)> @rt.ticket_create(attrs)
=> {"Cc"=>[],
 "Subject"=>"test subject",
 "id"=>"123456",
 "Queue"=>"support",
 "Owner"=>"Nobody",
 "Creator"=>"automator",
 "Status"=>"new",
 "Priority"=>"101",
 "InitialPriority"=>"101",
 "FinalPriority"=>"100",
 "Requestors"=>["a@hobbsee.com", "b@hobbsee.com"],
 "AdminCc"=>["c@hobbsee.com"],
 "Created"=>"Mon Sep 08 17:51:16 2014",
 "Starts"=>"Not set",
 "Started"=>"Not set",
 "Due"=>"Tue Sep 09 17:51:16 2014",
 "Resolved"=>"Not set",
 "Told"=>"Not set",
 "LastUpdated"=>"Mon Sep 08 17:51:17 2014",
 "TimeEstimated"=>"0",
 "TimeWorked"=>"0",
 "TimeLeft"=>"0"}
auxesis commented 10 years ago

Some initial thoughts:

auxesis commented 10 years ago

After some investigation: