composio-linear

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

Linear via Composio

通过Composio使用Linear

DO NOT use
linear
CLI. Use Composio HTTP API commands below.
请勿使用
linear
CLI。请使用以下Composio HTTP API命令。

Environment

环境变量

bash
COMPOSIO_API_KEY      # API key
COMPOSIO_USER_ID      # Entity ID (required for all requests)
COMPOSIO_CONNECTIONS  # JSON with .linear connection ID
bash
COMPOSIO_API_KEY      # API密钥
COMPOSIO_USER_ID      # 实体ID(所有请求均需提供)
COMPOSIO_CONNECTIONS  # 包含.linear连接ID的JSON数据

Core Pattern

核心模式

bash
CONNECTION_ID=$(echo $COMPOSIO_CONNECTIONS | jq -r '.linear')

curl -s "https://backend.composio.dev/api/v3/tools/execute/ACTION_NAME" \
  -H "x-api-key: $COMPOSIO_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "connected_account_id": "'$CONNECTION_ID'",
    "entity_id": "'$COMPOSIO_USER_ID'",
    "arguments": {}
  }' | jq '.data'
bash
CONNECTION_ID=$(echo $COMPOSIO_CONNECTIONS | jq -r '.linear')

curl -s "https://backend.composio.dev/api/v3/tools/execute/ACTION_NAME" \
  -H "x-api-key: $COMPOSIO_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "connected_account_id": "'$CONNECTION_ID'",
    "entity_id": "'$COMPOSIO_USER_ID'",
    "arguments": {}
  }' | jq '.data'

Quick Start

快速开始

bash
undefined
bash
undefined

List issues

列出任务

curl -s "https://backend.composio.dev/api/v3/tools/execute/LINEAR_LIST_LINEAR_ISSUES"
-H "x-api-key: $COMPOSIO_API_KEY" -H "Content-Type: application/json"
-d '{"connected_account_id": "'$CONNECTION_ID'", "entity_id": "'$COMPOSIO_USER_ID'", "arguments": {}}' | jq
curl -s "https://backend.composio.dev/api/v3/tools/execute/LINEAR_LIST_LINEAR_ISSUES"
-H "x-api-key: $COMPOSIO_API_KEY" -H "Content-Type: application/json"
-d '{"connected_account_id": "'$CONNECTION_ID'", "entity_id": "'$COMPOSIO_USER_ID'", "arguments": {}}' | jq

Get teams

获取团队

curl -s "https://backend.composio.dev/api/v3/tools/execute/LINEAR_GET_ALL_LINEAR_TEAMS"
-H "x-api-key: $COMPOSIO_API_KEY" -H "Content-Type: application/json"
-d '{"connected_account_id": "'$CONNECTION_ID'", "entity_id": "'$COMPOSIO_USER_ID'", "arguments": {}}' | jq
undefined
curl -s "https://backend.composio.dev/api/v3/tools/execute/LINEAR_GET_ALL_LINEAR_TEAMS"
-H "x-api-key: $COMPOSIO_API_KEY" -H "Content-Type: application/json"
-d '{"connected_account_id": "'$CONNECTION_ID'", "entity_id": "'$COMPOSIO_USER_ID'", "arguments": {}}' | jq
undefined

All Actions

所有操作

See references/actions.md for complete API reference including:
  • Issues: list, get, create, update, search, archive
  • Teams & Users: list teams, list users, get current user
  • Projects: list, create
  • Comments: create
  • GraphQL: run custom queries
请查看references/actions.md获取完整的API参考,包括:
  • 任务:列出、获取、创建、更新、搜索、归档
  • 团队与用户:列出团队、列出用户、获取当前用户
  • 项目:列出、创建
  • 评论:创建
  • GraphQL:运行自定义查询

Discover Actions

发现操作

bash
curl -s "https://backend.composio.dev/api/v2/actions?apps=linear" \
  -H "x-api-key: $COMPOSIO_API_KEY" | jq '.items[] | {name, description}'
bash
curl -s "https://backend.composio.dev/api/v2/actions?apps=linear" \
  -H "x-api-key: $COMPOSIO_API_KEY" | jq '.items[] | {name, description}'