Issue for getting last public comment

2 댓글

  • Corentin BERTEAU

    Ok my bad.


       function requestCommentsTicket(client, id) {
          var settings = {
            url: '/api/v2/tickets/' + id + '/comments',
            type:'GET',
            dataType: 'json',
          };
        
          client.request(settings).then(
            function(data) {
              console.log('request result', data)
            },
            function(response) {
              console.log('request result', response)
            }
          );
        }
    1
  • Vj Gunawardana

    i think you can get the channel prop from ticket.conversation to show whether is internal or web but what you have shared is definitely easier. 

    1

댓글을 남기려면 로그인하세요.

Zendesk 제공