# Query tickets by custom property

**URL:** <https://community.hubspot.com/t/query-tickets-by-custom-property/11345>\
**Category:** APIs & Integrations\
**Tags:** developer-tools\
**Created:** [December 3, 2018, 9:57am UTC](https://community.hubspot.com/t/query-tickets-by-custom-property/11345 "2018-12-03T09:57:40Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![system](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/system/32/124_2.png) [@system](https://community.hubspot.com/u/system)\
**Post date:** [December 3, 2018, 9:57am UTC](https://community.hubspot.com/t/query-tickets-by-custom-property/11345/1 "2018-12-03T09:57:40Z")

</div>

Hi

I have made a custom property for tickets and i can set and retrieve it via the Tickets API. Is there a way to query tickets and find the ones where the custom property is ‘X’?

Thanks.

Regards

---

<div class="post-metadata">

**Author:** ![IsaacTakushi](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/isaactakushi/32/70387_2.png) [@IsaacTakushi](https://community.hubspot.com/u/IsaacTakushi)\
**Post date:** [December 3, 2018, 2:55pm UTC](https://community.hubspot.com/t/query-tickets-by-custom-property/11345/2 "2018-12-03T14:55:55Z")

</div>

Welcome, [@Nikola\_Borozhiev](https://community.hubspot.com/u/nikola_borozhiev)!

Similar to my response below, this currently is _not_ possible:

![]() [New API: Tickets](https://integrate.hubspot.com/t/new-api-tickets/9800/5) [Announcements](https://community.hubspot.com/c/announcements)

> Welcome, [@kakigori](https://community.hubspot.com/u/kakigori)! All public announcements and timelines regarding API changes will be published to the [Changelog](https://developers.hubspot.com/changelog). That said, it’s not possible to look up tickets by custom property values at this time. If you don’t wish to store ticket IDs in your system, the best approach I can think of is to query the [CRM Associations API](https://developers.hubspot.com/docs/methods/crm-associations/get-associations) for tickets associated with a given contact ID (vid) and then pass the returned ticket IDs to [this endpoint](https://developers.hubspot.com/docs/methods/tickets/get_ticket_by_id). While I can imagine the team wishes to add custom property …

In your case, finding tickets with a custom property value of `X` would parsing through the results of the [Get all tickets](https://developers.hubspot.com/docs/methods/tickets/get-all-tickets) endpoint.

If you would like to see this type of functionality added to the Tickets API, please post your request on the [HubSpot Community Ideas Forum](https://community.hubspot.com/t5/HubSpot-Ideas/idb-p/HubSpot_Ideas) including [as much detail as possible](https://community.hubspot.com/t5/Guidelines-Announcements/HubSpot-Idea-Exchange-Submission-Guidelines/m-p/11670#M10). This information is sent directly to our Product team and helps prioritize feature requests that have the greatest impact on our customers.

If you share a link to your idea here, I’ll be happy to upvote it and share it with the folks in the other thread.
