public class IssueCommentApi extends Object
| Constructor and Description |
|---|
IssueCommentApi(org.everit.http.restclient.RestClient restClient) |
| Modifier and Type | Method and Description |
|---|---|
io.reactivex.Single<Comment> |
addComment(String issueIdOrKey,
Comment requestBody,
Optional<String> expand,
Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
Add comment
Adds a comment to an issue.
|
io.reactivex.Completable |
deleteComment(String issueIdOrKey,
String id,
Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
Delete comment
Deletes a comment.
|
io.reactivex.Single<Comment> |
getComment(String issueIdOrKey,
String id,
Optional<String> expand,
Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
Get comment
Returns a comment.
|
io.reactivex.Single<PageOfComments> |
getComments(String issueIdOrKey,
Optional<Long> startAt,
Optional<Integer> maxResults,
Optional<String> orderBy,
Optional<String> expand,
Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
Get comments
Returns all comments for an issue.
|
io.reactivex.Single<Comment> |
updateComment(String issueIdOrKey,
String id,
Comment requestBody,
Optional<String> expand,
Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
Update comment
Updates a comment.
|
public IssueCommentApi(org.everit.http.restclient.RestClient restClient)
public io.reactivex.Single<Comment> addComment(String issueIdOrKey, Comment requestBody, Optional<String> expand, Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
Adds a comment to an issue.
This operation can be accessed anonymously.
Permissions required:
issueIdOrKey - The ID or key of the issue.
(required)requestBody - (required)expand - Use expand to include additional information about comments in the response. This parameter accepts renderedBody, which returns the comment body rendered in HTML.
restRequestEnhancer - Adds the possibility to modify the rest request before sending out. This can be useful to add authorizations tokens for example.
public io.reactivex.Completable deleteComment(String issueIdOrKey, String id, Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
Deletes a comment.
Permissions required:
issueIdOrKey - The ID or key of the issue.
(required)id - The ID of the comment.
(required)restRequestEnhancer - Adds the possibility to modify the rest request before sending out. This can be useful to add authorizations tokens for example.
public io.reactivex.Single<Comment> getComment(String issueIdOrKey, String id, Optional<String> expand, Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
Returns a comment.
This operation can be accessed anonymously.
Permissions required:
issueIdOrKey - The ID or key of the issue.
(required)id - The ID of the comment.
(required)expand - Use expand to include additional information about comments in the response. This parameter accepts renderedBody, which returns the comment body rendered in HTML.
restRequestEnhancer - Adds the possibility to modify the rest request before sending out. This can be useful to add authorizations tokens for example.
public io.reactivex.Single<PageOfComments> getComments(String issueIdOrKey, Optional<Long> startAt, Optional<Integer> maxResults, Optional<String> orderBy, Optional<String> expand, Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
Returns all comments for an issue.
This operation can be accessed anonymously.
Permissions required: Comments are included in the response where the user has:
issueIdOrKey - The ID or key of the issue.
(required)startAt - The index of the first item to return in a page of results (page offset).
(optional, default to 0l)maxResults - The maximum number of items to return per page. The maximum is 100.
orderBy - The field to order returned comments by. Only accepts the value created, which orders comments by their created date.
(optional)expand - Use expand to include additional information about comments in the response. This parameter accepts renderedBody, which returns the comment body rendered in HTML.
restRequestEnhancer - Adds the possibility to modify the rest request before sending out. This can be useful to add authorizations tokens for example.
public io.reactivex.Single<Comment> updateComment(String issueIdOrKey, String id, Comment requestBody, Optional<String> expand, Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
Updates a comment.
This operation can be accessed anonymously.
Permissions required:
issueIdOrKey - The ID or key of the issue.
(required)id - The ID of the comment.
(required)requestBody - (required)expand - Use expand to include additional information about comments in the response. This parameter accepts renderedBody, which returns the comment body rendered in HTML.
restRequestEnhancer - Adds the possibility to modify the rest request before sending out. This can be useful to add authorizations tokens for example.
Copyright © 2011–2021 Everit Kft.. All rights reserved.