Lodol Docs

Linear

API actions for the Linear integration.

Linear

Create and manage Linear issues with a personal API key.


Add a comment to a Linear issue

Post a comment on a Linear issue thread.

Parameters

ParameterTypeRequiredDescription
issue_idstringYesLinear issue ID to comment on
bodystringYesThe comment text to post

Response

{
  "comment": {
    "body": "Sample text content",
    "id": "abc123xyz789"
  }
}

Create a Linear issue

Create a new Linear issue with optional project, description, priority, and assignee.

Parameters

ParameterTypeRequiredDescription
team_idstringYesLinear team ID for the issue
titlestringYesIssue title
descriptionstringNoIssue description. Markdown formatting is supported.
project_idstringNoID of the project to add the issue to
prioritynumberNoPriority level, from 1 to 5
assignee_idstringNoID of the user to assign the issue to

Response

{
  "issue": {
    "id": "abc123xyz789",
    "identifier": "abc123xyz789",
    "state": {
      "id": "state123",
      "name": "Todo"
    },
    "title": "Sample Item",
    "url": "https://example.com/path/123"
  }
}

Get Linear issue details

Retrieve detailed information for a Linear issue.

Parameters

ParameterTypeRequiredDescription
issue_idstringYesLinear issue ID to fetch

Response

{
  "issue": {
    "description": "example_value",
    "id": "abc123xyz789",
    "identifier": "abc123xyz789",
    "state": {
      "id": "state123",
      "name": "Active"
    },
    "title": "Sample Item",
    "url": "https://example.com/path/123"
  }
}

List Linear issues for a team

Fetch the latest Linear issues for a specific team.

Parameters

ParameterTypeRequiredDescription
team_idstringYesLinear team ID to list issues for
firstnumberNoMaximum number of issues to return (1-50)

Response

{
  "issues": [
    {
      "id": "item123",
      "name": "Sample Task"
    }
  ]
}

List Linear teams

Fetch available Linear teams for the connected workspace.

Response

{
  "teams": [
    {
      "id": "team123",
      "key": "ENG",
      "name": "Engineering"
    }
  ]
}

Update Linear issue state

Move a Linear issue to a different workflow state, such as Todo or Done, using the new state's ID.

Parameters

ParameterTypeRequiredDescription
issue_idstringYesLinear issue ID to update
state_idstringYesID of the workflow state to move the issue to

Response

{
  "issue": {
    "id": "abc123xyz789",
    "identifier": "abc123xyz789",
    "state": {
      "id": "state123",
      "name": "Active"
    },
    "title": "Sample Item"
  }
}

On this page