|
| 1 | +--- |
| 2 | +name: linear-issues |
| 3 | +description: Manage Linear issues - list, create, update, start/stop work. Use when working with Linear issues, viewing tasks, creating bugs, or updating issue status. |
| 4 | +allowed-tools: Bash |
| 5 | +--- |
| 6 | + |
| 7 | +# Linear Issues |
| 8 | + |
| 9 | +Manage Linear.app issues using the `linear-cli` command-line tool. |
| 10 | + |
| 11 | +## List Issues |
| 12 | + |
| 13 | +```bash |
| 14 | +# List all issues |
| 15 | +linear-cli i list |
| 16 | + |
| 17 | +# Filter by team |
| 18 | +linear-cli i list -t Engineering |
| 19 | + |
| 20 | +# Filter by status |
| 21 | +linear-cli i list -s "In Progress" |
| 22 | + |
| 23 | +# Get JSON output (for parsing) |
| 24 | +linear-cli i list --output json |
| 25 | +``` |
| 26 | + |
| 27 | +## View Issue Details |
| 28 | + |
| 29 | +```bash |
| 30 | +# View issue details |
| 31 | +linear-cli i get LIN-123 |
| 32 | + |
| 33 | +# Get as JSON |
| 34 | +linear-cli i get LIN-123 --output json |
| 35 | +``` |
| 36 | + |
| 37 | +## Create Issues |
| 38 | + |
| 39 | +```bash |
| 40 | +# Create issue (priority: 1=urgent, 2=high, 3=medium, 4=low) |
| 41 | +linear-cli i create "Bug: Login fails" -t Engineering -p 2 |
| 42 | + |
| 43 | +# Create with status |
| 44 | +linear-cli i create "Feature request" -t ENG -s "Backlog" |
| 45 | +``` |
| 46 | + |
| 47 | +## Update Issues |
| 48 | + |
| 49 | +```bash |
| 50 | +# Update status |
| 51 | +linear-cli i update LIN-123 -s Done |
| 52 | + |
| 53 | +# Update priority |
| 54 | +linear-cli i update LIN-123 -p 1 |
| 55 | +``` |
| 56 | + |
| 57 | +## Start/Stop Work |
| 58 | + |
| 59 | +```bash |
| 60 | +# Start working (assigns to you, sets In Progress, creates git branch) |
| 61 | +linear-cli i start LIN-123 --checkout |
| 62 | + |
| 63 | +# Stop working (unassigns, resets status) |
| 64 | +linear-cli i stop LIN-123 |
| 65 | +``` |
| 66 | + |
| 67 | +## Comments |
| 68 | + |
| 69 | +```bash |
| 70 | +# List comments |
| 71 | +linear-cli cm list LIN-123 |
| 72 | + |
| 73 | +# Get comments as JSON |
| 74 | +linear-cli cm list LIN-123 --output json |
| 75 | + |
| 76 | +# Add comment |
| 77 | +linear-cli cm create LIN-123 -b "Fixed in latest commit" |
| 78 | +``` |
| 79 | + |
| 80 | +## Tips |
| 81 | + |
| 82 | +- Use `--output json` for machine-readable output |
| 83 | +- Short alias: `i` for issues, `cm` for comments |
| 84 | +- Run `linear-cli i --help` for all options |
0 commit comments