You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
tickets/search API unable to retrieve tickets with a custom ticket_attribute set #139
tickets/search API unable to retrieve tickets with a custom ticket_attribute set
Hello
I am looking to use the tickets/search API to retrieve tickets with a particular ticket_attribute set.
This might already be possible but I am getting the syntax wrong, I can see on this page https://developers.intercom.com/docs/references/rest-api/api.intercom.io/Tickets/searchTickets/
it says you can use ticket_attribute.{id} as a field key but when I try this with a ticket attribute I am getting an error - field_not_found The request ticket attribute ID is not a valid integer response 400
Please advise on what I could be doing wrong here, thank you
Activity
DanielFrydman commentedon Dec 13, 2024
@Eclairemoy any updates on this one?
DanielFrydman commentedon Dec 13, 2024
@tommyhutcheson, I discovered how to search for specific attributes!
Instead of using
"ticket_attribute.{my_ticket_attribute}",use
"ticket_attribute.123456"instead!How to find the ID for your attribute:
ticket_type_attributeobject corresponding to your attribute.{ "type": "ticket_type_attribute", "id": "123456", "workspace_id": "...", "name": "Your ticket attribute name", "description": null, "data_type": "string", "input_options": { "multiline": false }, "order": 4, "required_to_create": false, "required_to_create_for_contacts": false, "visible_on_create": true, "visible_to_contacts": false, "default": false, "ticket_type_id": 1, "archived": false, "created_at": 1734009610, "updated_at": 1734009610 }idfield from this object.Example usage:
{ "field": "ticket_attribute.123456", "operator": "=", "value": "unknown" }Done!
@Eclairemoy I think you can close this ticket!