-
Notifications
You must be signed in to change notification settings - Fork 9
Description
Add follow up action is not working, getting "Invalid action" as error message. FYI below are my rails console o/p
2.1.1 :033 > ticket = CustomerSupport.connection.ticket("ND-957862")
=> #<Sirportly::Ticket {"id"=>6323491, "reference"=>"ND-957862", "subject"=>"a", "message_id"=>"6670b534-9431-c411-c990-6a75685868b6@sirportly.com", "submitted_at"=>2014-11-09 16:24:27 UTC, "updated_at"=>2014-11-09 16:24:27 UTC, "reply_due_at"=>nil, "resolution_due_at"=>nil, "auth_code"=>"9bd6q1mecbn2", "last_update_posted_at"=>2014-11-09 16:24:27 UTC, "first_response_time"=>nil, "first_resolution_time"=>nil, "resolution_time"=>nil, "last_respondant"=>"contact", "update_count"=>1, "status"=>#<Sirportly::Status {"id"=>19807, "name"=>"New", "colour"=>"77c300", "status_type"=>0}>, "priority"=>#<Sirportly::Priority {"id"=>18850, "name"=>"Normal", "colour"=>"0097cf", "position"=>1}>, "department"=>#<Sirportly::Department {"id"=>13894, "name"=>"Sales Enquiries", "brand"=>#<Sirportly::Brand {"id"=>6295, "name"=>"Webhostingbuzz", "url"=>nil, "phone"=>nil}>, "private"=>false}>, "team"=>#<Sirportly::Team {"id"=>7291, "name"=>"Staff"}>, "user"=>nil, "sla"=>nil, "additional_contact_methods"=>[], "updates"=>[#<Sirportly::TicketUpdate {"id"=>16442149, "subject"=>"Re: a", "message"=>"a1", "html_body"=>nil, "html_safe"=>false, "private"=>false, "posted_at"=>2014-11-09 16:24:27 UTC, "avatar_url"=>"https://secure.gravatar.com/avatar/aa91e2b1f48431e40cf47880c1a6f250?rating=PG&size={{size}}&d=mm", "author"=>{"type"=>"Customer", "id"=>3247999, "reference"=>nil, "name"=>"T", "abbreviated_name"=>"T", "company"=>nil, "mail_format"=>"both", "picture_url"=>nil, "discussion_count"=>1, "pin"=>"273804", "created_at"=>"2014-11-09T15:20:35Z"}, "from_name"=>"T", "from_address"=>"t3@abstractdns.com", "minutes_since_reply_due"=>0.0, "minutes_since_resolution_due"=>0.0, "minutes_since_submission"=>0.0, "minutes_since_last_reply"=>0.0, "signature_text"=>nil, "stripped_content"=>nil, "authenticated"=>false, "message_id"=>nil, "attachments"=>[], "source"=>nil, "notification_sent"=>nil, "delivered"=>nil}>], "custom_fields"=>{}, "source"=>{"id"=>1849, "name"=>"WHMCS", "token"=>"de964634-dec1-144b-50fe-d465d8db4bda", "secret"=>"enuuh53nhrbk5oq2nxs1v1bqgqec5si4564dxrvk2p8pe5ehe0", "ip_addresses"=>"", "enabled"=>true, "log"=>false, "log_response"=>false, "user"=>nil, "api_application"=>nil, "type"=>"ApiToken"}, "tags"=>[], "customer"=>#<Sirportly::Customer {"id"=>3247999, "reference"=>nil, "name"=>"T", "abbreviated_name"=>"T", "company"=>nil, "mail_format"=>"both", "picture_url"=>nil, "discussion_count"=>1, "pin"=>"273804", "created_at"=>2014-11-09 15:20:35 UTC}>, "customer_contact_method"=>#<Sirportly::CustomerContactMethod {"id"=>3249763, "method_type"=>"email", "data"=>"t3@abstractdns.com", "default"=>true}>}>
2.1.1 :034 > ticket.add_follow_up(:actor => 'adam', :status => 'resolved', :run_at => '2 days from now')
Sirportly::Errors::NotFound: InvalidAction