Enable your agents to manage issues, projects, and development workflows through Linear. Create and update issues, manage project timelines, organize teams, and streamline your software development process with AI-powered automation.
teamId (string, required): Team ID - Specify the Team ID of the parent for this new issue. Use Connect Portal Workflow Settings to allow users to select a Team ID. (example: “a70bdf0f-530a-4887-857d-46151b52b47c”).
title (string, required): Title - Specify a title for this issue.
description (string, optional): Description - Specify a description for this issue.
statusId (string, optional): Status - Specify the state or status of this issue.
priority (string, optional): Priority - Specify the priority of this issue as an integer.
dueDate (string, optional): Due Date - Specify the due date of this issue in ISO 8601 format.
cycleId (string, optional): Cycle ID - Specify the cycle associated with this issue.
issueId (string, required): Issue ID - Specify the record ID of the issue to delete. (example: “90fbc706-18cd-42c9-ae66-6bd344cc8977”).
Description: Archive an issue in Linear.
Parameters:
issueId (string, required): Issue ID - Specify the record ID of the issue to archive. (example: “90fbc706-18cd-42c9-ae66-6bd344cc8977”).
Description: Create a sub-issue in Linear.
Parameters:
parentId (string, required): Parent ID - Specify the Issue ID for the parent of this new issue.
teamId (string, required): Team ID - Specify the Team ID of the parent for this new sub-issue. Use Connect Portal Workflow Settings to allow users to select a Team ID. (example: “a70bdf0f-530a-4887-857d-46151b52b47c”).
title (string, required): Title - Specify a title for this issue.
description (string, optional): Description - Specify a description for this issue.
teamIds (object, required): Team ID - Specify the team ID(s) this project is associated with as a string or a JSON array. Use Connect Portal User Settings to allow your user to select a Team ID.
from crewai import Agent, Task, Crewfrom crewai_tools import CrewaiEnterpriseTools# Get enterprise tools (Linear tools will be included)enterprise_tools = CrewaiEnterpriseTools( enterprise_token="your_enterprise_token")# Create an agent with Linear capabilitieslinear_agent = Agent( role="Development Manager", goal="Manage Linear issues and track development progress efficiently", backstory="An AI assistant specialized in software development project management.", tools=[enterprise_tools])# Task to create a bug reportcreate_bug_task = Task( description="Create a high-priority bug report for the authentication system and assign it to the backend team", agent=linear_agent, expected_output="Bug report created successfully with issue ID")# Run the taskcrew = Crew( agents=[linear_agent], tasks=[create_bug_task])crew.kickoff()
from crewai_tools import CrewaiEnterpriseTools# Get only specific Linear toolsenterprise_tools = CrewaiEnterpriseTools( enterprise_token="your_enterprise_token", actions_list=["linear_create_issue", "linear_update_issue", "linear_search_issue"])issue_manager = Agent( role="Issue Manager", goal="Create and manage Linear issues efficiently", backstory="An AI assistant that focuses on issue creation and lifecycle management.", tools=enterprise_tools)# Task to manage issue workflowissue_workflow = Task( description="Create a feature request issue and update the status of related issues to reflect current progress", agent=issue_manager, expected_output="Feature request created and related issues updated")crew = Crew( agents=[issue_manager], tasks=[issue_workflow])crew.kickoff()
from crewai import Agent, Task, Crewfrom crewai_tools import CrewaiEnterpriseToolsenterprise_tools = CrewaiEnterpriseTools( enterprise_token="your_enterprise_token")project_coordinator = Agent( role="Project Coordinator", goal="Coordinate projects and teams in Linear efficiently", backstory="An experienced project coordinator who manages development cycles and team workflows.", tools=[enterprise_tools])# Task to coordinate project setupproject_coordination = Task( description=""" 1. Search for engineering teams in Linear 2. Create a new project for Q2 feature development 3. Associate the project with relevant teams 4. Create initial project milestones as issues """, agent=project_coordinator, expected_output="Q2 project created with teams assigned and initial milestones established")crew = Crew( agents=[project_coordinator], tasks=[project_coordination])crew.kickoff()
from crewai import Agent, Task, Crewfrom crewai_tools import CrewaiEnterpriseToolsenterprise_tools = CrewaiEnterpriseTools( enterprise_token="your_enterprise_token")task_organizer = Agent( role="Task Organizer", goal="Organize complex issues into manageable sub-tasks", backstory="An AI assistant that breaks down complex development work into organized sub-tasks.", tools=[enterprise_tools])# Task to create issue hierarchyhierarchy_task = Task( description=""" 1. Search for large feature issues that need to be broken down 2. For each complex issue, create sub-issues for different components 3. Update the parent issues with proper descriptions and links to sub-issues 4. Assign sub-issues to appropriate team members based on expertise """, agent=task_organizer, expected_output="Complex issues broken down into manageable sub-tasks with proper assignments")crew = Crew( agents=[task_organizer], tasks=[hierarchy_task])crew.kickoff()
from crewai import Agent, Task, Crewfrom crewai_tools import CrewaiEnterpriseToolsenterprise_tools = CrewaiEnterpriseTools( enterprise_token="your_enterprise_token")workflow_automator = Agent( role="Workflow Automator", goal="Automate development workflow processes in Linear", backstory="An AI assistant that automates repetitive development workflow tasks.", tools=[enterprise_tools])# Complex workflow automation taskautomation_task = Task( description=""" 1. Search for issues that have been in progress for more than 7 days 2. Update their priorities based on due dates and project importance 3. Create weekly sprint planning issues for each team 4. Archive completed issues from the previous cycle 5. Generate project status reports as new issues """, agent=workflow_automator, expected_output="Development workflow automated with updated priorities, sprint planning, and status reports")crew = Crew( agents=[workflow_automator], tasks=[automation_task])crew.kickoff()