Expand description
Issue comment threads: read an issue’s comments and create, update, or delete comments (threading included).
Entry point: LinearClient::comments.
use linear_api::comments::CommentListRequest;
use linear_api::{IssueRef, LinearClient};
let client = LinearClient::from_env()?;
// The "last 5 comments" deep-view call shape:
let page = client
.comments()
.list_for_issue(
IssueRef::identifier("ENG-123"),
CommentListRequest::builder().first(5).build(),
)
.await?;
for comment in &page.nodes {
println!("{}", comment.body);
}Structs§
- Comment
- One comment on an issue.
- Comment
Create Input - Input for
CommentsService::create(commentCreate). - Comment
Create Input Builder - Use builder syntax to set the inputs and finish with
build(). - Comment
List Request - Pagination controls for
CommentsService::list_for_issue. - Comment
List Request Builder - Use builder syntax to set the inputs and finish with
build(). - Comment
Parent - Reference to the parent of a threaded comment.
- Comments
Service - Comment operations, obtained via
LinearClient::comments.