pub struct Template {Show 18 fields
pub id: Option<String>,
pub created_at: Option<DateTime<Utc>>,
pub updated_at: Option<DateTime<Utc>>,
pub archived_at: Option<DateTime<Utc>>,
pub type: Option<String>,
pub name: Option<String>,
pub description: Option<String>,
pub icon: Option<String>,
pub color: Option<String>,
pub template_data: Option<Value>,
pub sort_order: Option<f64>,
pub last_applied_at: Option<DateTime<Utc>>,
pub organization: Option<Box<Organization>>,
pub team: Option<Box<Team>>,
pub creator: Option<Box<User>>,
pub last_updated_by: Option<Box<User>>,
pub inherited_from: Option<Box<Template>>,
pub has_form_fields: Option<bool>,
}Expand description
A reusable template for creating issues, projects, or documents. Templates store pre-filled field values and content as JSON data. They can be scoped to a specific team or shared across the entire workspace. Team-scoped templates may be inherited from parent teams.
Fields§
§id: Option<String>The unique identifier of the entity.
created_at: Option<DateTime<Utc>>The time at which the entity was created.
updated_at: Option<DateTime<Utc>>The last time at which the entity was meaningfully updated. This is the same as the creation time if the entity hasn’t been updated after creation.
archived_at: Option<DateTime<Utc>>The time at which the entity was archived. Null if the entity has not been archived.
type: Option<String>The entity type this template is for, such as ‘issue’, ‘project’, or ‘document’.
name: Option<String>The name of the template.
description: Option<String>A description of what the template is used for.
icon: Option<String>The icon of the template, either a decorative icon type or an emoji string. Null if no icon has been set.
color: Option<String>The hex color of the template icon. Null if no custom color has been set.
template_data: Option<Value>The template data as a JSON-encoded string containing the pre-filled attributes for the entity type (e.g., issue fields, project configuration, or document content).
sort_order: Option<f64>The sort order of the template within the templates list.
last_applied_at: Option<DateTime<Utc>>The date when the template was last applied to create or update an entity. Null if the template has never been applied.
organization: Option<Box<Organization>>The workspace that owns this template.
team: Option<Box<Team>>The team that the template is associated with. If null, the template is global to the workspace.
creator: Option<Box<User>>The user who created the template. Null if the creator’s account has been deleted.
last_updated_by: Option<Box<User>>The user who last updated the template. Null if the user’s account has been deleted.
inherited_from: Option<Box<Template>>The parent team template this template was inherited from. Null for original (non-inherited) templates.
has_form_fields: Option<bool>Internal Whether the template has form fields