Zurück zum Blog
Updates

Claude Routines on Your Tickets: One Click, Claude Takes Over

Connect your Claude routines to Spedy tickets. One click on the ticket, and Claude gets the full context — with a status update and the PR link posted back.

Spedy Team4 min read
Claude Routines on Your Tickets: One Click, Claude Takes Over
#claude#routines#automations#ai#pro

Many of you already work with Claude Routines — Anthropic's feature for reusable, Claude-driven work instructions. The sore spot until now: you see a ticket in Spedy, want to run exactly that routine on it, and still end up copy-pasting context into Claude, firing the routine by hand, and manually writing up what came out.

That bridge now exists: trigger Claude Routines straight from a Spedy ticket. Wire up the routine once, then a single click is enough. Spedy sends Claude the fully resolved prompt with ticket context, tracks the execution, and posts the PR link back into the ticket.

Up front, so there's no confusion: the routines themselves are and remain your Anthropic feature. Spedy doesn't build them — Spedy integrates them.

The integration has to be enabled by an org admin via the CLAUDE_ROUTINES feature flag.


What You Can Do Now

  • Set up once, use everywhere: for each of your routines you create an entry in Spedy — name, prompt template with ticket variables, your Anthropic webhook URL, your Anthropic secret.
  • Trigger with one click: every ticket gets a Claude Routines card. Pick a routine, optionally add extra text, hit Trigger — done.
  • Track status on the ticket: running and past executions show up right on the ticket. You can cancel your own runs.
  • Automatic feedback: when Claude is done, the PR link lands as an internal comment on the ticket — so you instantly see the outcome without switching tabs.

What Spedy Handles for You

So you don't have to copy-paste, the integration takes care of three things:

1. Ticket context in the prompt

Your prompt template can reference variables — Spedy fills them in before the request leaves:

Work on ticket {{ticket.displayId}}: {{ticket.title}}

{{ticket.description}}

Link: {{ticket.url}}

Available variables: {{ticket.id}}, {{ticket.displayId}}, {{ticket.title}}, {{ticket.description}}, {{ticket.status}}, {{ticket.statusKey}}, {{ticket.boardId}}, {{ticket.boardName}}, {{ticket.boardSlug}}, {{ticket.url}}.

On trigger you can also pass free-text ("also please write unit tests"). It's appended under a --- separator to the resolved prompt — just for that one run.

2. Pre- and post-steps on the ticket

A few things shouldn't be Claude's problem — so Spedy takes care of them around the trigger:

Step When What
move_status before or after Move the ticket to another board status (IN_PROGRESS, DONE, …)
assign_self before or after Assign the triggering user
post_pr_comment after Post the PR link as an internal comment on the ticket

Example: "before the run, move to IN_PROGRESS and assign me; after the run, drop the PR link as an internal comment." Configure it once and it happens on every execution automatically.

3. Scope: where a routine even shows up

Not every routine belongs on every board. That's why each routine has two optional limits:

  • Boards — empty means "available on every board you can access". Non-empty means "the routine only shows up on tickets of these boards".
  • Repositories — a list of owner/repo strings. Claude only receives repositories as context that are both linked to the ticket's board and listed here.

One-Time Setup (per User)

Under Account → Claude Routines, a 4-step wizard walks you through onboarding:

  1. Create a Personal Access Token — so the MCP server and your routine runners can read/write on your behalf.
  2. Drop in your webhook URL and secret — the URL Anthropic gave you for your routine. Spedy POSTs to exactly this URL on trigger.
  3. Copy the CLAUDE.md block — a short snippet for your project repo so Claude knows the tickets_* MCP tools (read ticket, post comment, set status).
  4. First run — trigger a simple routine on a test ticket, verify that the PR link comment appears.

After that it's one click per ticket.


Who Can Do What

The integration ships with two new permissions:

  • routines:manage — create, edit, delete your own routines in Spedy.
  • routines:trigger — run a routine on a ticket and see past executions.

Both permissions are in the default Admin and Team Member roles. Customers are intentionally excluded — they see neither the ticket card nor the account area.

There's also an org-level feature flag CLAUDE_ROUTINES. As long as that's off, the endpoints return 403 and the UI hides everything — an admin can flip it under org features.

And on every trigger Spedy does a last check: you can only run a routine on a ticket whose board you actually have access to.


Get Started

  1. Admin: enable CLAUDE_ROUTINES in organization settings.
  2. In Anthropic, set up a routine and keep the webhook URL + secret handy.
  3. In Spedy, open Account → Claude Routines and run through the setup wizard.
  4. Create your first routine in Spedy — with your prompt template, board scope, and repo scope.
  5. On a matching ticket, open the Claude Routines card and hit Trigger.

Frequently asked questions

Quick answers to the most common questions about this topic.

What are Claude Routines, exactly?
Claude Routines are an Anthropic feature — reusable instructions you define in your Anthropic account and hand off to Claude. Spedy doesn't build routines. We just build the bridge so you can trigger one of your routines directly from a ticket, with full ticket context, proper permissions, and results posted back.
So what does Spedy actually do for me?
Three things: (1) one click on a ticket fires your routine — Spedy fills in the ticket's title, description, status, board, and URL, (2) Spedy sends the prompt to Claude using your Anthropic secret, handing the work off to Claude's runner, (3) Spedy tracks the execution and posts the PR link back into the ticket.
Do I need my own Claude account?
Yes. Routines run in your Anthropic quota. Spedy stores your webhook URL and secret per routine, triggers the routine on your behalf, and shows you the status here — but the actual work and the cost live on Anthropic.
Can I restrict a routine to specific boards or repos?
Yes. Each routine has an allow-list of boards and of repositories. Tickets outside the board list simply don't show the routine, and as repo context Claude only receives repositories that are both linked to the board and present in your allowedRepos list.
Who can trigger routines?
Admins and team members — customers are intentionally excluded. The integration also has to be enabled at the org level by an admin (CLAUDE_ROUTINES), and on each trigger Spedy additionally checks that you have access to the ticket's board.
Claude Routines on Your Tickets: One Click, Claude Takes Over – Spedy Blog | Spedy