| com.atlassian.bitbucket.comment.CommentService |
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Adds a comment on a line on a file in a diff
| |||||||||||
Adds a comment on a file in a diff
| |||||||||||
Adds a general comment on a commentable
| |||||||||||
Adds a comment reply to a
tread | |||||||||||
Count all the
comments matching the provided request. | |||||||||||
Count all the
threads matching the provided request. | |||||||||||
Delete a comment
| |||||||||||
Find a comment with the given ID
| |||||||||||
Search for all
threads matching the provided request. | |||||||||||
Adds a comment on a line on a file in a diff
| request | describes the comment to create |
|---|
Adds a comment on a file in a diff
| request | describes the comment to create |
|---|
Adds a general comment on a commentable
| request | describes the comment to create |
|---|
Adds a comment reply to a tread
| request | a request describing the comment to be added |
|---|
| NoSuchCommentException | if the parent comment cannot be found |
|---|
Count all the comments matching the provided request.
If present, each one of the properties in the search request applies an extra filter to the search
criteria. A null value (or an empty collection) means no filter will be applied
for that property. Orphaned comments are not
counted by this endpoint.
| request | the request describing the search |
|---|
Count all the threads matching the provided request.
If present, each one of the properties in the search request applies an extra filter to the search
criteria. A null value (or an empty collection) means no filter will be applied
for that property. Orphaned comments are not
counted by this endpoint.
| request | the request describing the search |
|---|
Delete a comment
| commentId | the ID for the comment that should be deleted |
|---|---|
| version | the expected version for the comment to delete |
true if the comment existed and was deleted, false otherwise| CommentDeletionException | if the comment has replies |
|---|---|
| CommentOutOfDateException | if the provided version doesn't match the comment's current version |
| NoSuchCommentException | if the comment to delete cannot be found |
Find a comment with the given ID
| commentId | the ID for the comment to look for |
|---|
Search for all threads matching the provided request.
If present, each one of the properties in the search request applies an extra filter to the search
criteria. A null value (or an empty collection) means no filter will be applied
for that property. Orphaned comments are not
returned by this endpoint.
| request | the request describing the search |
|---|---|
| pageRequest | the request specifying the start and limit of the page |
| request | the request describing how the comment should be updated |
|---|
| CommentOutOfDateException | if the provided version doesn't match the comment's current version |
|---|---|
| NoSuchCommentException | if the comment to update cannot be found |