最近搜索


没有最近搜索

Issue for getting last public comment



已于 2023年11月20日 发布

Hello, I am currently facing difficulties retrieving the latest public comment, and I have not found a solution in the documentation to identify whether a comment is public or not:

The client.get(ticket.comments) route retrieves all comments from ticket, but it does not retrieve the boolean parameter 'public' for comments.



0

2

2 条评论

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


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


请先登录再写评论。

找不到所需的内容?

新建帖子