Javascript
Custom data
:::caution
If you are trying to set data for ticket attributes, please check our πΌ Ticket attributes.
:::
Add custom data
In many situations you may want to attach custom data to tickets in order to better understand the context. You can add custom data incrementally or all at once. Any simple JSON object can be attached.
Append custom data
If you want to attach custom data incrementally you can do so with the setCustomData
method.
Remove custom data
Remove custom data key value pairs by calling the following method.
Clear all custom data
Itβs possible to clear all attached custom data by calling the following method.