public class CommentResource extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
CommentResource.CommentField |
| Constructor and Description |
|---|
CommentResource(CommentService commentService,
JiraAuthenticationContext authContext,
I18nHelper i18n,
ProjectRoleManager projectRoleManager,
JiraBaseUrls jiraBaseUrls,
IssueFinder issueFinder,
DateTimeFormatterFactory dateTimeFormatterFactory,
RendererManager rendererManager,
FieldLayoutManager fieldLayoutManager,
EmailFormatter emailFormatter) |
| Modifier and Type | Method and Description |
|---|---|
javax.ws.rs.core.Response |
addComment(String issueIdOrKey,
String expand,
CommentJsonBean request)
Adds a new comment to an issue.
|
javax.ws.rs.core.Response |
deleteComment(String issueIdOrKey,
String commentId)
Deletes an existing comment .
|
javax.ws.rs.core.Response |
getComment(String issueIdOrKey,
String commentId,
String expand)
Returns a single issue comment.
|
javax.ws.rs.core.Response |
getComments(String issueIdOrKey,
String expand,
PageRequest pageRequest,
io.atlassian.fugue.Option<OrderByRequest<CommentResource.CommentField>> orderByRequest)
Returns all comments for an issue.
|
javax.ws.rs.core.Response |
getPinnedComments(String issueIdOrKey)
Returns list of pinned to issue comments.
|
javax.ws.rs.core.Response |
setPinComment(String issueIdOrKey,
String commentId,
boolean pinned) |
javax.ws.rs.core.Response |
updateComment(String issueIdOrKey,
String commentId,
String expand,
CommentJsonBean request)
Updates an existing comment using its JSON representation.
|
public CommentResource(CommentService commentService, JiraAuthenticationContext authContext, I18nHelper i18n, ProjectRoleManager projectRoleManager, JiraBaseUrls jiraBaseUrls, IssueFinder issueFinder, DateTimeFormatterFactory dateTimeFormatterFactory, RendererManager rendererManager, FieldLayoutManager fieldLayoutManager, EmailFormatter emailFormatter)
public javax.ws.rs.core.Response getComments(String issueIdOrKey, String expand, PageRequest pageRequest, io.atlassian.fugue.Option<OrderByRequest<CommentResource.CommentField>> orderByRequest)
issueIdOrKey - to get comments forexpand - optional flags: renderedBody (provides body rendered in HTML), properties (provides comment properties).public javax.ws.rs.core.Response getComment(String issueIdOrKey, String commentId, String expand)
commentId - the ID of the comment to requestissueIdOrKey - of the issue the comment belongs toexpand - optional flags: renderedBody (provides body rendered in HTML), properties (provides comment
properties).public javax.ws.rs.core.Response updateComment(String issueIdOrKey, String commentId, String expand, CommentJsonBean request)
issueIdOrKey - a string containing the issue id or key the comment belongs tocommentId - id of the comment to be updatedexpand - optional flags: renderedBody (provides body rendered in HTML), properties (provides comment
properties).request - json body of request converted to a CommentJsonBeanpublic javax.ws.rs.core.Response deleteComment(String issueIdOrKey, String commentId)
issueIdOrKey - a string containing the issue id or key the comment belongs tocommentId - id of the comment to be deletedpublic javax.ws.rs.core.Response setPinComment(String issueIdOrKey, String commentId, boolean pinned)
public javax.ws.rs.core.Response getPinnedComments(String issueIdOrKey)
issueIdOrKey - of the issue the comment belongs topublic javax.ws.rs.core.Response addComment(String issueIdOrKey, String expand, CommentJsonBean request)
issueIdOrKey - a string containing the issue id or key the comment will be added toexpand - optional flags: renderedBody (provides body rendered in HTML), properties (provides comment
properties).request - json body of request converted to a CommentJsonBeanCopyright © 2002-2024 Atlassian. All Rights Reserved.