Ticket comments API: filter by public property

2 Comentários

  • Charles Nadeau
    Zendesk Documentation Team

    HI Denis,

    You could use the "public" property of the comments in your script to filter out private comments. It might look something like this pseudo-code:

    public_comments = []
    for page in comments_request:
    for comment in page:
    if comment["public"] is True:



  • Denis Tataurov

    Hi Charles Nadeau!

    That's what I actually do right now. But it may be not a good in terms of UX. For example, there may be 20 comments returned: 3 are public and 17 are private. Hopefully it may be not visible for the end user (filtering doesn't break cursor pagination values) but could be confusing if the percentage of private comments is high


Por favor, entrar para comentar.

Powered by Zendesk