ticket — Claude Code command: JIRA and Linear integration
A command that handles the full ticket workflow: fetch task details from JIRA or Linear, explore related code, implement changes, and create a linked PR. Reduces manual sync between issue tracker and repository.
no license ★ 6,091 updated 2026-01-06
.claude/commands/ticket.mdWhat ticket does
Running the command fetches ticket metadata via JIRA or Linear MCP tools—title, description, acceptance criteria, and comments. It searches the codebase for related files, creates a branch following naming conventions, and guides you through implementation with test-first practices.
As work progresses, the command updates the ticket status, posts progress comments, and flags blockers. Once changes are ready, it creates a pull request with gh pr create, links it to the ticket, and includes the ticket ID in the commit message.
The command requires active MCP connections to JIRA, Linear, or GitHub; access to git and gh CLI tools; and project configuration files in the expected locations. If an unrelated bug surfaces during work, it can create a separate ticket and cross-link it.
What it helps with
- move from ticket to pull request without manual status switching
- gather full requirements and context from comments and descriptions
- identify all files that need changes for a given task
- keep ticket status in sync with development progress
Example prompts for the agent
- /ticket PROJ-123
- /ticket INFRA-456
- /ticket Linear-team/task-789
How to install ticket
Manually: put the files in place
.claude/commands/ticket.mdCall it with /ticket. For all projects use ~/.claude/commands/
Manually: put the files in place
~/.codex/prompts/ticket.mdCall it with /prompts:ticket. Codex marks this format deprecated in favour of skills
Manually: put the files in place
.github/prompts/ticket.prompt.mdManually: put the files in place
.gemini/commands/ticket.tomlGemini stores commands as TOML: the prompt text goes into the prompt field
Questions about ticket
How do I install ticket in Claude Code?
Place the command file at .claude/commands/ticket.md in your project root. Create the directory if it doesn't exist, then reload Claude Code. The command will be available as /ticket.
What does ticket do?
It reads a ticket from JIRA or Linear, searches for relevant code, creates a feature branch, helps you implement changes, and automatically creates a PR linked to the ticket. Status and comments are updated throughout.
Which MCP servers does ticket need?
Connect MCP servers for JIRA (mcp__jira__*), Linear (mcp__linear__*), or GitHub (mcp__github__*) depending on your system. You also need git and the GitHub CLI (gh) available in your shell.