How to Reply to a comment using JiraRestClient API

I am using the following jira-rest-java-api

com.atlassian.jira jira-rest-java-client-core 5.2.6

A Comment can be added with “issueRestClient.addComment(issue.getCommentsUri(), Comment.valueOf(“My Comment”)).claim();”.

But how to add a reply to a comment using this API? (Overview (JIRA REST Java Client 4.0.0 API) (atlassian.com))

Second question: How to get replies to a comment?
Getting all comments (incl. replies) can be requested via “issue.getComments()” but how to get the replies for only one comment? Or is it possible to know the parent for each comment returned by “issue.getComments()”?

Hello @AndreasEngel

Jira doesn’t have a native comment reply functionality. You must be using a third party add-on / plugin that’s providing that functionality.

You will need to reference the documentation of that product to determine if it provides an API for managing replied comments.

1 Like