pub struct Issue {Show 28 fields
pub id: u64,
pub parent: Option<IssueEssentials>,
pub project: ProjectEssentials,
pub tracker: TrackerEssentials,
pub status: IssueStatusEssentials,
pub priority: IssuePriorityEssentials,
pub author: UserEssentials,
pub assigned_to: Option<AssigneeEssentials>,
pub category: Option<IssueCategoryEssentials>,
pub version: Option<VersionEssentials>,
pub subject: Option<String>,
pub description: Option<String>,
pub start_date: Option<Date>,
pub due_date: Option<Date>,
pub closed_on: Option<OffsetDateTime>,
pub done_ratio: u64,
pub custom_fields: Option<Vec<CustomFieldEssentialsWithValue>>,
pub estimated_hours: Option<f64>,
pub created_on: OffsetDateTime,
pub updated_on: OffsetDateTime,
pub attachments: Option<Vec<Attachment>>,
pub relations: Option<Vec<IssueRelation>>,
pub journals: Option<Vec<Journal>>,
pub children: Option<Vec<ChildIssue>>,
pub watchers: Option<Vec<UserEssentials>>,
pub spent_hours: Option<f64>,
pub total_spent_hours: Option<f64>,
pub total_estimated_hours: Option<f64>,
/* private fields */
}
Expand description
a type for issue to use as an API return type
alternatively you can use your own type limited to the fields you need
Fields§
§id: u64
numeric id
parent: Option<IssueEssentials>
parent issue
project: ProjectEssentials
the project of the issue
tracker: TrackerEssentials
the tracker of the issue
status: IssueStatusEssentials
the issue status
priority: IssuePriorityEssentials
the issue priority
the issue author
assigned_to: Option<AssigneeEssentials>
the user or group the issue is assigned to
category: Option<IssueCategoryEssentials>
the issue category
version: Option<VersionEssentials>
the version the issue is assigned to
subject: Option<String>
the issue subject
description: Option<String>
the issue description
start_date: Option<Date>
the start date for the issue
due_date: Option<Date>
the due date for the issue
closed_on: Option<OffsetDateTime>
the time when the issue was closed
done_ratio: u64
the percentage done
custom_fields: Option<Vec<CustomFieldEssentialsWithValue>>
custom fields with values
estimated_hours: Option<f64>
estimated hours it will take to implement this issue
created_on: OffsetDateTime
The time when this issue was created
updated_on: OffsetDateTime
The time when this issue was last updated
attachments: Option<Vec<Attachment>>
issue attachments (only when include parameter is used)
relations: Option<Vec<IssueRelation>>
issue relations (only when include parameter is used)
journals: Option<Vec<Journal>>
journal entries (comments and changes), only when include parameter is used
children: Option<Vec<ChildIssue>>
child issues (only when include parameter is used)
watchers: Option<Vec<UserEssentials>>
watchers
spent_hours: Option<f64>
the hours spent
total_spent_hours: Option<f64>
the total hours spent on this and sub-tasks
total_estimated_hours: Option<f64>
the total hours estimated on this and sub-tasks