Skip to content

Commit b4aea36

Browse files
schpetschpetbot
authored andcommitted
feat: add issue search command
1 parent e23e9ff commit b4aea36

8 files changed

Lines changed: 1206 additions & 1 deletion

File tree

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ linear config # setup your repo, it writes a config file
1111

1212
linear issue list # list unstarted issues assigned to you
1313
linear issue list -A # list unstarted issues assigned to anyone
14+
linear issue search "login bug" # search issues in your configured team
1415
linear issue start # choose an issue to start, creates a branch
1516
linear issue start ABC-123 # start a specific issue
1617
linear issue view # see current branch's issue as markdown
@@ -134,6 +135,8 @@ linear issue list # list your issues in a table view (supports -s/--state a
134135
linear issue list --project "My Project" --milestone "Phase 1" # filter by milestone
135136
linear issue list -w # open issue list in web browser
136137
linear issue list -a # open issue list in Linear.app
138+
linear issue search "login bug" # search issues by text in your configured team
139+
linear issue search "oauth timeout" --team ENG --json # structured search output for agents
137140
linear issue start # create/switch to issue branch and mark as started
138141
linear issue create # create a new issue (interactive prompts)
139142
linear issue create -t "title" -d "description" # create with flags

skills/linear-cli/references/issue.md

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ Commands:
2020
2121
id - Print the issue based on the current git branch
2222
list - List your issues
23+
search <term> - Search issues by text
2324
title [issueId] - Print the issue title
2425
start [issueId] - Start working on an issue
2526
view, v [issueId] - View issue details (default) or open in browser/app
@@ -92,6 +93,40 @@ Options:
9293
--no-pager - Disable automatic paging for long output
9394
```
9495

96+
### search
97+
98+
> Search issues by text
99+
100+
```
101+
Usage: linear issue search <term>
102+
103+
Description:
104+
105+
Search issues by text
106+
107+
Options:
108+
109+
-h, --help - Show this help.
110+
-w, --workspace <slug> - Target workspace (uses credentials)
111+
--team <team> - Team to search in
112+
--all-teams - Search across all teams
113+
-s, --state <state> - Filter by issue state (can be repeated for multiple states) (Values: "triage", "backlog", "unstarted", "started",
114+
"completed", "canceled")
115+
--assignee <assignee> - Filter by assignee (username)
116+
-U, --unassigned - Show only unassigned issues
117+
--project <project> - Filter by project name
118+
--project-label <projectLabel> - Filter by project label name (shows issues from all projects with this label)
119+
-l, --label <label> - Filter by label name (can be repeated for multiple labels)
120+
--include-comments - Search associated comments too
121+
--include-archived - Include archived issues
122+
--created-after <date> - Filter issues created after this date (ISO 8601 or YYYY-MM-DD)
123+
--updated-after <date> - Filter issues updated after this date (ISO 8601 or YYYY-MM-DD)
124+
--order-by <orderBy> - Use the API's supported search ordering (Values: "createdAt", "updatedAt")
125+
--limit <limit> - Maximum number of results to fetch (default: 20, use 0 for unlimited) (Default: 20)
126+
--no-pager - Disable automatic paging for long output
127+
-j, --json - Output search results as JSON
128+
```
129+
95130
### title
96131

97132
> Print the issue title

0 commit comments

Comments
 (0)