Ticket comments API: filter by public property

2 Comentarios

  • 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:
    public_comments.append(comment)

     

     

    0
  • 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

    1

Iniciar sesión para dejar un comentario.

Tecnología de Zendesk