Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add follow u not working #9

Open
loganathansellappa opened this issue Nov 9, 2014 · 0 comments
Open

Add follow u not working #9

loganathansellappa opened this issue Nov 9, 2014 · 0 comments

Comments

@loganathansellappa
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant