published fresh until

How do I turn a Jira ticket into a reviewed PR with Claude Code?

Summary When you want an agent to turn a ticket into a reviewed PR, fetch it, review a written plan, require tests, and consider a second-model review. Claude Code can copy selected gitignored files into new worktrees with .worktreeinclude.

Not for warming worktree dependencies; see warm-worktrees-for-parallel-agents-lane

For your agent
claude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp

Read-only, no account. Sign-in is only for trial reports: /connect.md

What this thread does

As of November 2026, use ticket intake, a separate worktree, an approved plan and required tests as the core loop. Do first: start with one ticket and review the plan before implementation.

The question

A senior Android developer asked in r/androiddev (Ok-Swimming-2992) what people do around the basic loop of pasting a Jira story into Claude Code, reviewing its plan and letting it implement: raw tickets or a command that pulls them, giving crash traces up front, running the app on a device, writing a failing test first, finding the right module in a big codebase, and who writes the PR text. The workflow below is assembled from commenters, not measured.

Practices commenters described

  • Fetch the ticket instead of pasting it. Use an Atlassian/Jira MCP server so the agent reads the story directly (Atlassian documents a remote MCP server for Jira, with Claude Code setup steps).
  • One worktree per ticket. A skill runs a small bash script that creates a git worktree, then the agent writes a plan to a PLAN.md before any code. Claude Code also has a built-in --worktree flag, so a custom script is optional. Its worktree docs document .worktreeinclude in the project root to copy selected gitignored files into new Claude-created worktrees. A custom WorktreeCreate hook must copy them itself.
  • Split models by job. One commenter plans with a stronger model and implements with a cheaper one.
  • Cross-check with a second model. A commenter has a different model (Codex) review the PR of the first, reasoning that models catch each other's mistakes. This is the commenter's belief, not a measured result.
  • Make tests mandatory. Integration and unit tests, plus logging and UI rules, live in the skill. Some commenters let the agent write the PR description and update the ticket.
  • Orchestrated variants. One team described a GitHub issue plus two bots, one reviewing and one fixing CI and conflicts.

Concerns raised

  • The human should still own and check the plan; one commenter said they feel reduced to PM, reviewer and QA for the agent.
  • Another worried that the codebase grows faster than anyone can follow, with a five-year maintenance question.
  • Two commenters promoted their own tools in the thread; those mentions are advertising rather than independent evidence.

Try it

Start with the smallest piece: an MCP-fetched ticket, a worktree, a written plan you approve, required tests. Add the second-model review only if you can compare its findings with human review on a few PRs. Related threads cover agents fixing CI on their own PRs and stacked PRs; this one covers ticket intake and cross-model review.

Sources

Started from a post by @Ok-Swimming-2992, packaged by the editor. Original post

Subjects

More in agent workflows

For agents

Copy a short instruction for an agent that has WhatWorks connected, or open this page as Markdown.

# How do I turn a Jira ticket into a reviewed PR with Claude Code?
Summary: When you want an agent to turn a ticket into a reviewed PR, fetch it, review a written plan, require tests, and consider a second-model review. Claude Code can copy selected gitignored files into new worktrees with `.worktreeinclude`.
Copy for agent
get the whatworks thread ticket-to-pr-worktree-loop-cross-model-review and help me try it

Follow this thread

Following tells you when the verdict changes, a new version ships or a new option is added. Your agent mentions it the next time you ask WhatWorks.

Sign in with GitHub to follow. Nothing is posted for you.

Sign in with GitHub

Or ask your agent
follow the whatworks thread ticket-to-pr-worktree-loop-cross-model-review
WhatWorks

Connect your agent MCP

Paste this into your agent

Connect me to WhatWorks: add https://whatworks.dev/mcp for anonymous reading; sign in via OAuth only to report a trial. Steps: https://whatworks.dev/connect.md.

Or run this in your terminal
  • Claude Codeclaude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp
  • Codexcodex mcp add whatworks --url https://whatworks.dev/mcp