#[non_exhaustive]pub struct Issue {Show 28 fields
pub id: IssueId,
pub identifier: String,
pub number: f64,
pub title: String,
pub description: Option<String>,
pub url: String,
pub branch_name: String,
pub priority: Priority,
pub priority_label: String,
pub estimate: Option<f64>,
pub due_date: Option<TimelessDate>,
pub sort_order: f64,
pub state: StateRef,
pub team: TeamRef,
pub assignee: Option<UserRef>,
pub creator: Option<UserRef>,
pub labels: Vec<LabelRef>,
pub project: Option<ProjectRef>,
pub project_milestone: Option<MilestoneRef>,
pub parent: Option<IssueStub>,
pub relations: Vec<OutgoingRelation>,
pub inverse_relations: Vec<IncomingRelation>,
pub created_at: OffsetDateTime,
pub updated_at: OffsetDateTime,
pub completed_at: Option<OffsetDateTime>,
pub canceled_at: Option<OffsetDateTime>,
pub started_at: Option<OffsetDateTime>,
pub archived_at: Option<OffsetDateTime>,
}Expand description
A Linear issue with its commonly needed references embedded (state, team, people, labels, project placement, parent, and relation summaries).
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.id: IssueIdIssue ID (UUID).
identifier: StringHuman identifier, e.g. "ENG-123".
number: f64Issue number within its team (a Float on the wire).
title: StringIssue title.
description: Option<String>Issue description in markdown, when set.
url: StringURL of the issue in the Linear app.
branch_name: StringSuggested VCS branch name for this issue.
priority: PriorityPriority (0 = none … 4 = low).
priority_label: StringHuman-readable priority label, e.g. "High".
estimate: Option<f64>Estimate in the team’s chosen scale, when set.
due_date: Option<TimelessDate>Due date, when set.
sort_order: f64Board sort order.
state: StateRefCurrent workflow state.
team: TeamRefOwning team.
assignee: Option<UserRef>Assignee, when set.
creator: Option<UserRef>Creator; absent for issues created by integrations.
labels: Vec<LabelRef>Labels attached to the issue (first 50).
project: Option<ProjectRef>Project the issue belongs to, when any.
project_milestone: Option<MilestoneRef>Project milestone the issue is slotted into, when any.
parent: Option<IssueStub>Parent issue, when this is a sub-issue.
relations: Vec<OutgoingRelation>Outgoing relations (first 10): this issue is the source, e.g. it
blocks OutgoingRelation::related_issue.
inverse_relations: Vec<IncomingRelation>Incoming relations (first 10): this issue is the target, e.g. it is
blocked by IncomingRelation::issue.
created_at: OffsetDateTimeWhen the issue was created.
updated_at: OffsetDateTimeWhen the issue was last updated.
completed_at: Option<OffsetDateTime>When the issue was completed, when it was.
canceled_at: Option<OffsetDateTime>When the issue was canceled, when it was.
started_at: Option<OffsetDateTime>When work on the issue started, when it did.
archived_at: Option<OffsetDateTime>When the issue was archived, when it was.
Implementations§
Source§impl Issue
impl Issue
Sourcepub fn blocks(&self) -> Vec<&IssueStub>
pub fn blocks(&self) -> Vec<&IssueStub>
Issues this issue blocks: outgoing relations of type
IssueRelationType::Blocks, yielding their
related_issue.
Relation semantics: a blocks relation means issueId blocks
relatedIssueId; relations holds the outgoing side and
inverseRelations the incoming side.
Sourcepub fn blocked_by(&self) -> Vec<&IssueStub>
pub fn blocked_by(&self) -> Vec<&IssueStub>
Issues this issue is blocked by: incoming relations of type
IssueRelationType::Blocks, yielding their
issue (the blocker).