feat: add cycle support to issue commands#150
Merged
schpet merged 1 commit intoschpet:mainfrom Feb 24, 2026
Merged
Conversation
Add --cycle flag to issue create and update commands, accepting cycle name, number, or 'active' keyword. Display cycle in issue view output alongside project and milestone metadata. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Owner
Contributor
|
picked this up, added |
schpet
pushed a commit
that referenced
this pull request
Mar 4, 2026
### Summary - Add `linear cycle list` and `linear cycle view` commands for browsing team cycles - Add `--cycle` filter to `linear issue list` for filtering issues by cycle - Regenerate skill docs to include new commands ### Problem PR #150 added cycle support to issue create/update/view, but there was no way to browse cycles themselves or filter issue lists by cycle. Users had to know cycle names/numbers without being able to look them up from the CLI. See #64. ### Fix Adds a `cycle` command group (aliased `cy`) with two subcommands, following the same patterns as the existing `milestone` commands: **`cycle list`** shows all cycles for a team with number, name, dates, and status. Active cycle is highlighted in green, upcoming cycles use default color, and completed/past cycles are muted. ``` $ linear cycle list --team XXX # NAME START END STATUS 3 Sprint 3 2026-03-10 2026-03-24 Upcoming 2 Sprint 2 2026-02-24 2026-03-10 Active 1 Sprint 1 2026-02-10 2026-02-24 Completed ``` **`cycle view`** shows full cycle details including a progress indicator, description, issue breakdown by state, and first 10 issues. Accepts cycle name, number, or "active". ``` $ linear cycle view active --team XXX # Sprint 2 **Number:** 2 **Start:** 2026-02-24 **End:** 2026-03-10 **Status:** Active **Team:** MyTeam (XXX) ## Issues **Progress:** 17/50 (34%) **Total Issues:** 50 **Completed:** 17 **In Progress:** 12 **To Do:** 21 **Issues:** - XXX-412: Fix auth token refresh (In Progress) - XXX-398: Add dark mode toggle (Todo) ... ``` **`issue list --cycle`** filters the issue list to a specific cycle, reusing the existing `getCycleIdByNameOrNumber()` utility and the GraphQL `IssueFilter.cycle` field. ``` $ linear issue list --cycle active --team XXX --sort priority ◌ ID TITLE LABELS E STATE UPDATED --- XXX-101 Some task Backend, Feature - Todo 1 day ago --- XXX-102 Another task Feature - Todo 1 day ago ``` ### Why Cycles are a core part of the Linear workflow and the CLI should support browsing them. `cycle list` lets you see what's available, `cycle view` gives you sprint progress at a glance, and `--cycle` on issue list lets you scope your view to a specific sprint. ### Test Plan - Tested all three commands against a real Linear workspace with 11 cycles and 50+ issues - `cycle view` tested with active, by number, and by exact name lookup - All 220 unit/snapshot tests pass
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
--cycleflag toissue createandissue updatecommands, accepting cycle name, number, oractivekeywordissue viewoutput alongside project and milestone metadatagetCycleIdByNameOrNumberhelper queries team cycles via GraphQLTest plan
deno check,deno lintcleanlinear issue update PLA4-10034 --team PLA4 --cycle active— verified cycle set viaissue view🤖 Generated with Claude Code