How to filter out archived tickets from search export API? | Community
Skip to main content

How to filter out archived tickets from search export API?

  • February 2, 2022
  • 4 replies
  • 0 views

As per the documentation search, export API also includes archived tickets. are they ways to filter out those archived records?

4 replies

Tipene
  • February 2, 2022

Hi @ashish12,

Thanks for reaching out! 

Something like this should return the results you're looking for:

/api/v2/search/export?query=status<closed&filter[type]=ticket

This will filter by type of ticket and return all tickets greater than closed.

I hope this helps! Let me know if you have any questions.

Tipene


  • Author
  • February 3, 2022

thanks for the quick reply. That helps


Tipene
  • February 3, 2022
Happy to help!
 
Have a great day,
 
Tipene

  • February 2, 2023

Can you please help me with the reverse situation.  I'd like to export archived tickets.