Skip to main content

💼 Ticket attributes

Tags: ReactNative

Ticket custom data

Set ticket attributes

Ticket attributes can be set with the method below. If the user also provides data for an attribute (for example description), the user input will be prioritized.

Gleap.setTicketAttribute("notes", "This is a test value.");

First param: attribute key
Second param: value (string, boolean, string array or number are supported)

Ticket attribute data will not be pre-filled in forms.

Finding the ticket attribute keys

You can find or create all available ticket attributes for each ticket type in Settings > Data attributes.

Ticket attribute

Unset ticket attributes

Ticket attributes can be unset with the method below.

Gleap.unsetTicketAttribute("notes")

Clear all ticket attributes

All ticket attributes can be cleared with the method below.

Gleap.clearTicketAttributes()