Class: LinearToonMcp::Tools::GetIssue

Inherits:
Get
  • Object
show all
Defined in:
lib/linear_toon_mcp/tools/get_issue.rb

Overview

Fetch a single Linear issue by ID or identifier and return it as TOON. Includes metadata, state, assignee, labels, project, team, attachments, parent issue, and direct child issues.

Constant Summary collapse

QUERY =
<<~GRAPHQL
  query($id: String!) {
    issue(id: $id) {
      id
      identifier
      title
      description
      priority
      priorityLabel
      url
      branchName
      createdAt
      updatedAt
      archivedAt
      completedAt
      dueDate
      state { name }
      assignee { id name }
      creator { id name }
      labels { nodes { name } }
      project { id name }
      team { id name }
      attachments { nodes { id title url } }
      parent { identifier title url state { name } }
      children(first: 50) { nodes { identifier title url state { name } } }
    }
  }
GRAPHQL

Method Summary

Methods inherited from Get

entity, entity_label, entity_name, #not_found_message, #perform, query_string, #variables

Methods inherited from Base

call, #call, error_response, #perform, success_response