Skip to content

Missing ticket_state_id on ticket update method API v2.11 #498

Description

@julianCast

According to the API Documentation 2.12, we can pass ticket_state_id to update a ticket to a specific state. Since the intercom client uses v.2.11 there is no way to update to a specific state id where we can only pass one of the main states ("in_progress" | "waiting_on_customer" | "resolved").

async updateTicket(params: IntercomUpdateTicketParams): Promise<Ticket> {
    return intercom.tickets.update({
      ticket_id: params.ticketId,
      ticket_attributes: params.ticketAttributes,
      open: params.open,
      state: params.state,
    });
  }

So, for example if we have a case where we have two different states under waiting_on_customer, how to choose which one using this library?

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions