pub struct Team {Show 89 fields
pub id: Option<String>,
pub created_at: Option<DateTime<Utc>>,
pub updated_at: Option<DateTime<Utc>>,
pub archived_at: Option<DateTime<Utc>>,
pub name: Option<String>,
pub key: Option<String>,
pub description: Option<String>,
pub icon: Option<String>,
pub color: Option<String>,
pub retired_at: Option<DateTime<Utc>>,
pub organization: Option<Box<Organization>>,
pub parent: Option<Box<Team>>,
pub children: Option<Vec<Team>>,
pub cycles_enabled: Option<bool>,
pub cycle_start_day: Option<f64>,
pub cycle_duration: Option<f64>,
pub cycle_cooldown_time: Option<f64>,
pub cycle_issue_auto_assign_started: Option<bool>,
pub cycle_issue_auto_assign_completed: Option<bool>,
pub cycle_lock_to_active: Option<bool>,
pub upcoming_cycle_count: Option<f64>,
pub timezone: Option<String>,
pub inherit_workflow_statuses: Option<bool>,
pub inherit_issue_estimation: Option<bool>,
pub issue_estimation_type: Option<String>,
pub issue_ordering_no_priority_first: Option<bool>,
pub issue_estimation_allow_zero: Option<bool>,
pub set_issue_sort_order_on_state_change: Option<String>,
pub issue_estimation_extended: Option<bool>,
pub default_issue_estimate: Option<f64>,
pub triage_enabled: Option<bool>,
pub require_priority_to_leave_triage: Option<bool>,
pub default_issue_state: Option<Box<WorkflowState>>,
pub default_template_for_members: Option<Box<Template>>,
pub default_template_for_members_id: Option<String>,
pub default_template_for_non_members: Option<Box<Template>>,
pub default_template_for_non_members_id: Option<String>,
pub default_project_template: Option<Box<Template>>,
pub triage_issue_state: Option<Box<WorkflowState>>,
pub private: Option<bool>,
pub all_members_can_join: Option<bool>,
pub security_settings: Option<Value>,
pub facets: Option<Vec<Facet>>,
pub posts: Option<Vec<Post>>,
pub scim_managed: Option<bool>,
pub scim_group_name: Option<String>,
pub progress_history: Option<Value>,
pub current_progress: Option<Value>,
pub draft_workflow_state: Option<Box<WorkflowState>>,
pub start_workflow_state: Option<Box<WorkflowState>>,
pub review_workflow_state: Option<Box<WorkflowState>>,
pub mergeable_workflow_state: Option<Box<WorkflowState>>,
pub merge_workflow_state: Option<Box<WorkflowState>>,
pub group_issue_history: Option<bool>,
pub ai_thread_summaries_enabled: Option<bool>,
pub ai_discussion_summaries_enabled: Option<bool>,
pub slack_new_issue: Option<bool>,
pub slack_issue_comments: Option<bool>,
pub slack_issue_statuses: Option<bool>,
pub auto_close_period: Option<f64>,
pub auto_close_state_id: Option<String>,
pub auto_archive_period: Option<f64>,
pub auto_close_parent_issues: Option<bool>,
pub auto_close_child_issues: Option<bool>,
pub marked_as_duplicate_workflow_state: Option<Box<WorkflowState>>,
pub join_by_default: Option<bool>,
pub inherit_slack_auto_create_project_channel: Option<bool>,
pub slack_auto_create_project_channel: Option<bool>,
pub cycle_calender_url: Option<String>,
pub display_name: Option<String>,
pub ancestors: Option<Vec<Team>>,
pub issues: Option<IssueConnection>,
pub issue_count: Option<i64>,
pub cycles: Option<CycleConnection>,
pub active_cycle: Option<Box<Cycle>>,
pub triage_responsibility: Option<Box<TriageResponsibility>>,
pub members: Option<UserConnection>,
pub membership: Option<Box<TeamMembership>>,
pub memberships: Option<TeamMembershipConnection>,
pub projects: Option<ProjectConnection>,
pub release_pipelines: Option<ReleasePipelineConnection>,
pub states: Option<WorkflowStateConnection>,
pub git_automation_states: Option<GitAutomationStateConnection>,
pub templates: Option<TemplateConnection>,
pub labels: Option<IssueLabelConnection>,
pub webhooks: Option<WebhookConnection>,
pub integrations_settings: Option<Box<IntegrationsSettings>>,
pub issue_sort_order_default_to_bottom: Option<bool>,
pub invite_hash: Option<String>,
}Expand description
A team is the primary organizational unit in Linear. Issues belong to teams, and each team has its own workflow states, cycles, labels, and settings. Teams can be public (visible to all workspace members) or private (visible only to team members). Teams can also have sub-teams that inherit settings from their parent.
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.
name: Option<String>The team’s name.
key: Option<String>The team’s unique key, used as a prefix in issue identifiers (e.g., ‘ENG’ in ‘ENG-123’) and in URLs.
description: Option<String>The team’s description.
icon: Option<String>The icon of the team.
color: Option<String>The team’s color.
retired_at: Option<DateTime<Utc>>The time at which the team was retired. Retired teams no longer accept new issues or members. Null if the team has not been retired.
organization: Option<Box<Organization>>The workspace that the team belongs to.
parent: Option<Box<Team>>The team’s parent team.
children: Option<Vec<Team>>Internal The team’s sub-teams.
cycles_enabled: Option<bool>Whether the team uses cycles for sprint-style issue management.
cycle_start_day: Option<f64>The day of the week that a new cycle starts (0 = Sunday, 1 = Monday, …, 6 = Saturday).
cycle_duration: Option<f64>The duration of each cycle in weeks.
cycle_cooldown_time: Option<f64>The cooldown time after each cycle in weeks.
cycle_issue_auto_assign_started: Option<bool>Auto assign started issues to current cycle.
cycle_issue_auto_assign_completed: Option<bool>Auto assign completed issues to current cycle.
cycle_lock_to_active: Option<bool>Auto assign issues to current cycle if in active status.
upcoming_cycle_count: Option<f64>How many upcoming cycles to create.
timezone: Option<String>The timezone of the team. Defaults to “America/Los_Angeles”
inherit_workflow_statuses: Option<bool>Whether the team should inherit its workflow statuses from its parent. Only applies to sub-teams.
inherit_issue_estimation: Option<bool>Whether the team should inherit its estimation settings from its parent. Only applies to sub-teams.
issue_estimation_type: Option<String>The issue estimation type to use. Must be one of “notUsed”, “exponential”, “fibonacci”, “linear”, “tShirt”.
issue_ordering_no_priority_first: Option<bool>DEPRECATED Whether issues without priority should be sorted first.
issue_estimation_allow_zero: Option<bool>Whether to allow zeros in issues estimates.
set_issue_sort_order_on_state_change: Option<String>Where to move issues when changing state.
issue_estimation_extended: Option<bool>Whether to add additional points to the estimate scale.
default_issue_estimate: Option<f64>What to use as a default estimate for unestimated issues.
triage_enabled: Option<bool>Whether triage mode is enabled for the team. When enabled, issues created by non-members or integrations are routed to a triage state for review before entering the normal workflow.
require_priority_to_leave_triage: Option<bool>Whether an issue needs to have a priority set before leaving triage.
default_issue_state: Option<Box<WorkflowState>>The default workflow state into which issues are set when they are opened by team members.
default_template_for_members: Option<Box<Template>>The default template to use for new issues created by members of the team.
default_template_for_members_id: Option<String>The id of the default template to use for new issues created by members of the team.
default_template_for_non_members: Option<Box<Template>>The default template to use for new issues created by non-members of the team.
default_template_for_non_members_id: Option<String>The id of the default template to use for new issues created by non-members of the team.
default_project_template: Option<Box<Template>>The default template to use for new projects created for the team.
triage_issue_state: Option<Box<WorkflowState>>The workflow state into which issues are set when they are opened by non-team members or integrations if triage is enabled.
private: Option<bool>Whether the team is private. Private teams are only visible to their members and require an explicit invitation to join.
all_members_can_join: Option<bool>Whether all members in the workspace can join the team. Only used for public teams.
security_settings: Option<Value>Security settings for the team, including role-based restrictions for issue sharing, label management, member management, and template management.
facets: Option<Vec<Facet>>Internal Facets associated with the team.
posts: Option<Vec<Post>>Internal Posts associated with the team.
scim_managed: Option<bool>Whether the team is managed by a SCIM integration. SCIM-managed teams have their membership controlled by the identity provider.
scim_group_name: Option<String>The SCIM group name for the team.
progress_history: Option<Value>Internal The progress history of the team.
current_progress: Option<Value>Internal The current progress of the team.
draft_workflow_state: Option<Box<WorkflowState>>The workflow state into which issues are moved when a PR has been opened as draft.
start_workflow_state: Option<Box<WorkflowState>>The workflow state into which issues are moved when a PR has been opened.
review_workflow_state: Option<Box<WorkflowState>>The workflow state into which issues are moved when a review has been requested for the PR.
mergeable_workflow_state: Option<Box<WorkflowState>>The workflow state into which issues are moved when a PR is ready to be merged.
merge_workflow_state: Option<Box<WorkflowState>>The workflow state into which issues are moved when a PR has been merged.
group_issue_history: Option<bool>Whether to group recent issue history entries.
ai_thread_summaries_enabled: Option<bool>Whether to enable resolved thread AI summaries.
ai_discussion_summaries_enabled: Option<bool>Whether to enable AI discussion summaries for issues in this team.
slack_new_issue: Option<bool>Whether to send new issue notifications to Slack.
slack_issue_comments: Option<bool>Whether to send new issue comment notifications to Slack.
slack_issue_statuses: Option<bool>Whether to send new issue status updates to Slack.
auto_close_period: Option<f64>Period after which issues are automatically closed in months. Null/undefined means disabled.
auto_close_state_id: Option<String>The canceled workflow state which auto closed issues will be set to. Defaults to the first canceled state.
auto_archive_period: Option<f64>Period after which automatically closed, completed, and duplicate issues are automatically archived in months.
auto_close_parent_issues: Option<bool>Whether parent issues should automatically close when all child issues are closed
auto_close_child_issues: Option<bool>Whether child issues should automatically close when their parent issue is closed
marked_as_duplicate_workflow_state: Option<Box<WorkflowState>>The workflow state into which issues are moved when they are marked as a duplicate of another issue. Defaults to the first canceled state.
join_by_default: Option<bool>Internal Whether new users should join this team by default.
inherit_slack_auto_create_project_channel: Option<bool>Internal Whether the team should inherit its Slack auto-create project channel setting from its parent. Only applies to sub-teams.
slack_auto_create_project_channel: Option<bool>Internal Whether to automatically create a Slack channel when a new project is created in this team.
cycle_calender_url: Option<String>Calendar feed URL (iCal) for cycles.
display_name: Option<String>The name of the team including its parent team name if it has one.
ancestors: Option<Vec<Team>>Internal The team’s ancestor teams, ordered from the root to the immediate parent.
issues: Option<IssueConnection>Issues belonging to the team. Supports filtering and optional inclusion of sub-team issues.
issue_count: Option<i64>The total number of issues in the team. By default excludes archived issues; use the includeArchived argument to include them.
cycles: Option<CycleConnection>Cycles associated with the team.
active_cycle: Option<Box<Cycle>>Team’s currently active cycle.
triage_responsibility: Option<Box<TriageResponsibility>>Team’s triage responsibility.
members: Option<UserConnection>Users who are members of this team. Supports filtering and pagination.
membership: Option<Box<TeamMembership>>ALPHA The membership of the given user in the team.
memberships: Option<TeamMembershipConnection>Memberships associated with the team. For easier access of the same data, use members query.
projects: Option<ProjectConnection>Projects associated with the team.
release_pipelines: Option<ReleasePipelineConnection>ALPHA Release pipelines associated with the team.
states: Option<WorkflowStateConnection>The states that define the workflow associated with the team.
git_automation_states: Option<GitAutomationStateConnection>The Git automation states for the team.
templates: Option<TemplateConnection>Templates associated with the team.
labels: Option<IssueLabelConnection>Labels associated with the team.
webhooks: Option<WebhookConnection>Webhooks associated with the team.
integrations_settings: Option<Box<IntegrationsSettings>>Settings for all integrations associated with that team.
issue_sort_order_default_to_bottom: Option<bool>DEPRECATED Whether to move issues to bottom of the column when changing state.
invite_hash: Option<String>DEPRECATED Unique hash for the team to be used in invite URLs.