pub struct Task {Show 27 fields
pub gid: Gid,
pub name: String,
pub resource_type: Option<String>,
pub completed: bool,
pub completed_at: Option<String>,
pub completed_by: Option<UserRef>,
pub assignee: Option<UserRef>,
pub due_on: Option<String>,
pub due_at: Option<String>,
pub start_on: Option<String>,
pub start_at: Option<String>,
pub notes: Option<String>,
pub html_notes: Option<String>,
pub created_at: Option<String>,
pub created_by: Option<UserRef>,
pub modified_at: Option<String>,
pub permalink_url: Option<String>,
pub parent: Option<TaskRef>,
pub num_likes: u32,
pub num_subtasks: u32,
pub liked: bool,
pub projects: Vec<ResourceRef>,
pub workspace: Option<ResourceRef>,
pub tags: Vec<ResourceRef>,
pub memberships: Vec<TaskMembership>,
pub assignee_section: Option<ResourceRef>,
pub custom_fields: Vec<CustomFieldValue>,
}Expand description
An Asana task.
Fields§
§gid: GidThe unique identifier for the task.
name: StringThe name/title of the task.
resource_type: Option<String>The resource type (always “task”).
completed: boolWhether the task is completed.
completed_at: Option<String>When the task was completed, if applicable.
completed_by: Option<UserRef>The user who completed the task.
assignee: Option<UserRef>The user assigned to the task.
due_on: Option<String>The due date of the task (date only, no time).
due_at: Option<String>The due date and time of the task.
start_on: Option<String>The start date of the task.
start_at: Option<String>The start date and time of the task.
notes: Option<String>Notes/description for the task (plain text).
html_notes: Option<String>Notes/description for the task (HTML).
created_at: Option<String>When the task was created.
created_by: Option<UserRef>The user who created the task.
modified_at: Option<String>When the task was last modified.
permalink_url: Option<String>Permalink URL for the task.
parent: Option<TaskRef>The parent task, if this is a subtask.
num_likes: u32Number of likes on the task.
num_subtasks: u32Number of subtasks.
liked: boolWhether the task is liked by the current user.
projects: Vec<ResourceRef>The projects this task belongs to.
workspace: Option<ResourceRef>The workspace this task belongs to.
The tags on this task.
memberships: Vec<TaskMembership>Task memberships (project associations with section info).
assignee_section: Option<ResourceRef>The assignee section (column in board view).
custom_fields: Vec<CustomFieldValue>Custom field values on this task.