Skip to content

Commit 356c24c

Browse files
committed
Merge pull request cloudbees-oss#12 from psomashekar/feature/investigate_public_comments
add support for all comments (public and private)
2 parents 107c220 + 9734478 commit 356c24c

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/main/java/org/zendesk/client/v2/Zendesk.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -561,6 +561,11 @@ public Iterable<Comment> getRequestComments(long id) {
561561
return new PagedIterable<Comment>(tmpl("/requests/{id}/comments.json").set("id", id),
562562
handleList(Comment.class, "comments"));
563563
}
564+
565+
public Iterable<Comment> getTicketComments(long id) {
566+
return new PagedIterable<Comment>(tmpl("/tickets/{id}/comments.json").set("id", id),
567+
handleList(Comment.class, "comments"));
568+
}
564569

565570
public Comment getRequestComment(org.zendesk.client.v2.model.Request request, Comment comment) {
566571
checkHasId(comment);

0 commit comments

Comments
 (0)