Home
/
Desk
/
iOS
/
Ticket

Related channels indicate group channels in Sendbird Chat that are relevant to a ticket. By providing one or more related channels, your agents can see the contextual background of a customer's inquiry during the conversation. Up to three group channels can be added per ticket, and they are displayed on the right side of the ticket details view on the Sendbird Dashboard.

Note: On the Sendbird Dashboard, the term Related chats is used instead of related channels.


You can add up to three related channels when creating a ticket. Pass one or more group channel URLs as an argument to the relatedChannels parameter in the SBDSKTicket.createTicket() method.

Light Color Skin
Copy
SBDSKTicket.createTicket(withTitle: TICKET_TITLE, userName: USER_NAME, relatedChannels: RELATED_CHANNEL_URLS) { (ticket, error) in
    guard error == nil else {
        // Handle error.
    }

    // The ticket is created with the specified related channels.
}

To update related channels, use the ticket.setRelatedChannels() method.

Light Color Skin
Copy
ticket.setRelatedChannels(RELATED_CHANNEL_URLS) { (error) in
    guard error == nil else {
        // Handle error.
    }

    // The ticket.relatedChannels property has been updated.
}

Note: The ticket.relatedChannels property in the callback indicates the group channel object of the related channels, which contains their channel names and group channel URLs.