> For the complete documentation index, see llms.txt.
Skip to main content

Check out Port for yourself ➜ 

Linear issue actions

Linear integration actions let workflows manage issues and related content through your installed Linear integration.

Prerequisites

  • A Linear integration installed in your Port organization.
  • Actions processing enabled for the integration.
  • A Linear API key with access to the teams, issues, projects, and agents used by the workflow.

Configuration

All Linear actions use the following node configuration:

FieldTypeDescription
type"INTEGRATION_ACTION"Required. Must be "INTEGRATION_ACTION".
installationIdstringRequired. Your Linear integration installation ID.
integrationProvider"linear"Required. Must be "linear".
integrationInvocationTypestringRequired. The Linear operation to run.
integrationActionExecutionPropertiesobjectRequired. Properties for the selected operation.

Create an issue

Use create_issue to create an issue in a Linear team.

Execution properties

FieldTypeDescription
teamIdstringRequired. UUID of the Linear team.
titlestringRequired. Issue title.
descriptionstringIssue description in Markdown.
assigneeIdstringUUID of the user assigned to the issue.
stateIdstringUUID of the workflow state assigned to the issue.
projectIdstringUUID of the associated project.
cycleIdstringUUID of the associated cycle.
prioritystringPriority from 0 (no priority) to 4 (low).
labelIdsarrayUUIDs of labels attached to the issue.

Example

Create an issue in a Linear team:

Node configuration (click to expand)
{
"identifier": "create-linear-issue",
"title": "Create Linear issue",
"config": {
"type": "INTEGRATION_ACTION",
"installationId": "linear-installation",
"integrationProvider": "linear",
"integrationInvocationType": "create_issue",
"integrationActionExecutionProperties": {
"teamId": "4b28ca84-2f8f-4a52-8f31-2ccbbbd83091",
"title": "Investigate checkout failures"
}
}
}

Create a sub-issue

Use create_sub_issue to create a child of an existing issue.

Execution properties

FieldTypeDescription
parentIdstringRequired. UUID or identifier of the parent issue, such as ENG-123.
titlestringRequired. Sub-issue title.
teamIdstringTeam UUID. The parent issue's team is used when omitted.
descriptionstringIssue description in Markdown.
assigneeIdstringUUID of the user assigned to the issue.
stateIdstringUUID of the workflow state assigned to the issue.
prioritystringPriority from 0 (no priority) to 4 (low).

Example

Create a sub-issue under an existing parent issue:

Node configuration (click to expand)
{
"identifier": "create-linear-sub-issue",
"title": "Create Linear sub-issue",
"config": {
"type": "INTEGRATION_ACTION",
"installationId": "linear-installation",
"integrationProvider": "linear",
"integrationInvocationType": "create_sub_issue",
"integrationActionExecutionProperties": {
"parentId": "ENG-123",
"title": "Add regression coverage"
}
}
}

Update an issue

Use update_issue to update an existing issue. Provide at least one optional field to change.

Execution properties

FieldTypeDescription
issueIdstringRequired. UUID or identifier of the issue, such as ENG-123.
titlestringUpdated issue title.
descriptionstringUpdated issue description in Markdown.
assigneeIdstringUUID of the user assigned to the issue.
stateIdstringUUID of the workflow state.
projectIdstringUUID of the associated project.
cycleIdstringUUID of the associated cycle.
prioritystringPriority from 0 (no priority) to 4 (low).
delegateIdstringUUID of the agent app user delegated to the issue.
labelIdsarrayUUIDs of labels attached to the issue.

Example

Update an existing issue:

Node configuration (click to expand)
{
"identifier": "update-linear-issue",
"title": "Update Linear issue",
"config": {
"type": "INTEGRATION_ACTION",
"installationId": "linear-installation",
"integrationProvider": "linear",
"integrationInvocationType": "update_issue",
"integrationActionExecutionProperties": {
"issueId": "ENG-123",
"title": "Investigate intermittent checkout failures"
}
}
}

Change issue status

Use change_status to move an issue to another workflow state. Provide either stateId or stateName.

Execution properties

FieldTypeDescription
issueIdstringRequired. UUID or identifier of the issue.
stateIdstringUUID of the target workflow state.
stateNamestringName of the target workflow state in the issue's team.

Example

Move an issue to another workflow state:

Node configuration (click to expand)
{
"identifier": "change-linear-issue-status",
"title": "Change Linear issue status",
"config": {
"type": "INTEGRATION_ACTION",
"installationId": "linear-installation",
"integrationProvider": "linear",
"integrationInvocationType": "change_status",
"integrationActionExecutionProperties": {
"issueId": "ENG-123",
"stateName": "In Progress"
}
}
}

Add a comment

Use add_comment to add Markdown content to an issue.

Execution properties

FieldTypeDescription
issueIdstringRequired. UUID or identifier of the issue.
bodystringRequired. Comment content in Markdown.

Example

Post a comment on an issue:

Node configuration (click to expand)
{
"identifier": "comment-on-linear-issue",
"title": "Comment on Linear issue",
"config": {
"type": "INTEGRATION_ACTION",
"installationId": "linear-installation",
"integrationProvider": "linear",
"integrationInvocationType": "add_comment",
"integrationActionExecutionProperties": {
"issueId": "ENG-123",
"body": "The fix is ready for review."
}
}
}

Add a document

Use add_document to create a document associated with an issue or project. Provide either issueId or projectId.

Execution properties

FieldTypeDescription
titlestringRequired. Document title.
contentstringDocument content in Markdown.
issueIdstringUUID or identifier of the related issue.
projectIdstringUUID of the related project.

Example

Create a document linked to an issue:

Node configuration (click to expand)
{
"identifier": "add-linear-document",
"title": "Add Linear document",
"config": {
"type": "INTEGRATION_ACTION",
"installationId": "linear-installation",
"integrationProvider": "linear",
"integrationInvocationType": "add_document",
"integrationActionExecutionProperties": {
"title": "Checkout failure investigation",
"issueId": "ENG-123"
}
}
}

Add an issue reaction

Use add_reaction_to_issue to add an emoji reaction to an issue.

Execution properties

FieldTypeDescription
issueIdstringRequired. UUID or identifier of the issue.
emojistringRequired. Emoji shortcode, such as +1, thumbsup, or eyes.

Example

Add an emoji reaction to an issue:

Node configuration (click to expand)
{
"identifier": "react-to-linear-issue",
"title": "React to Linear issue",
"config": {
"type": "INTEGRATION_ACTION",
"installationId": "linear-installation",
"integrationProvider": "linear",
"integrationInvocationType": "add_reaction_to_issue",
"integrationActionExecutionProperties": {
"issueId": "ENG-123",
"emoji": "eyes"
}
}
}

Archive an issue

Use archive_issue to archive an issue.

Execution properties

FieldTypeDescription
issueIdstringRequired. UUID or identifier of the issue.

Example

Archive an issue:

Node configuration (click to expand)
{
"identifier": "archive-linear-issue",
"title": "Archive Linear issue",
"config": {
"type": "INTEGRATION_ACTION",
"installationId": "linear-installation",
"integrationProvider": "linear",
"integrationInvocationType": "archive_issue",
"integrationActionExecutionProperties": {
"issueId": "ENG-123"
}
}
}

Delete an issue

Use delete_issue to move an issue to Linear's trash.

Execution properties

FieldTypeDescription
issueIdstringRequired. UUID or identifier of the issue.

Example

Delete an issue:

Node configuration (click to expand)
{
"identifier": "delete-linear-issue",
"title": "Delete Linear issue",
"config": {
"type": "INTEGRATION_ACTION",
"installationId": "linear-installation",
"integrationProvider": "linear",
"integrationInvocationType": "delete_issue",
"integrationActionExecutionProperties": {
"issueId": "ENG-123"
}
}
}

Delegate an issue to an agent

Use delegate_issue_to_agent to delegate an issue to a Linear agent app user.

Execution properties

FieldTypeDescription
issueIdstringRequired. UUID or identifier of the issue.
delegateIdstringRequired. UUID of the agent app user.

Example

Delegate an issue to a Linear agent app user:

Node configuration (click to expand)
{
"identifier": "delegate-linear-issue",
"title": "Delegate Linear issue",
"config": {
"type": "INTEGRATION_ACTION",
"installationId": "linear-installation",
"integrationProvider": "linear",
"integrationInvocationType": "delegate_issue_to_agent",
"integrationActionExecutionProperties": {
"issueId": "ENG-123",
"delegateId": "8df2102a-5f4a-4474-a8bc-7f0976e1534c"
}
}
}