> ## Documentation Index
> Fetch the complete documentation index at: https://docs.devin.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Bulk-Plan Your Ticket Backlog

export const UseCaseHero = ({title, description, prompt, category, features, devinUrl, agent, intent, playbookId, type}) => {
  const encodedPrompt = encodeURIComponent(prompt || '');
  const tag = 'docs-use-case-gallery';
  const utm = 'utm_source=docs&utm_medium=use-case-gallery&utm_campaign=hero-cta';
  const agentParams = (agent ? '&agent=' + agent : '') + (intent ? '&intent=' + intent : '') + (playbookId ? '&playbookId=' + playbookId : '');
  const devinHref = type === 'schedule' ? 'https://app.devin.ai/settings/schedules/create?' + utm + agentParams + (prompt ? '&prompt=' + encodedPrompt : '') : type === 'review' ? 'https://app.devin.ai/review?' + utm : agent === 'ada' ? 'https://app.devin.ai/search?' + utm + '&noSubmit=true' + (prompt ? '&prompt=' + encodedPrompt : '') : devinUrl ? devinUrl.includes('?') ? devinUrl + '&' + utm + agentParams : devinUrl + '?' + utm + agentParams : prompt ? 'https://app.devin.ai/?tags=' + tag + '&' + utm + agentParams + '&prompt=' + encodedPrompt : 'https://app.devin.ai/?' + utm + agentParams;
  const buttonLabel = type === 'schedule' ? 'Schedule in Devin ↗' : type === 'review' ? 'Set Up Devin Review ↗' : agent === 'advanced' ? 'Try in Devin ↗' : agent === 'dana' ? 'Try in Dana ↗' : agent === 'ada' ? 'Try in Ask Devin ↗' : 'Try in Devin ↗';
  const featureList = features ? features.split(',').map(f => f.trim()) : [];
  return <div className="uc-hero">
      <div className="uc-hero-inner">
        <div className="uc-hero-left">
          <h1 className="uc-hero-title">{title}</h1>
          <p className="uc-hero-desc">{description}</p>
          <div>
            <a href={devinHref} target="_blank" rel="noopener noreferrer" className="try-in-devin-btn">
              {buttonLabel}
            </a>
          </div>
        </div>
        <div className="uc-hero-meta">
          <div className="uc-meta-item">
            <span className="uc-meta-label">Author</span>
            <span className="uc-meta-value">Cognition</span>
          </div>
          <div className="uc-meta-item">
            <span className="uc-meta-label">Category</span>
            <span className="uc-meta-value">{category}</span>
          </div>
          {featureList.length > 0 && <div className="uc-meta-item">
              <span className="uc-meta-label">Features</span>
              <span className="uc-meta-value">{featureList.join(', ')}</span>
            </div>}
        </div>
      </div>
    </div>;
};

export const PromptBlock = ({children, type, agent, intent, playbookId}) => {
  var utm = 'utm_source=docs&utm_medium=use-case-gallery&utm_campaign=prompt-block';
  var tag = 'docs-use-case-gallery';
  var agentParams = (agent ? '&agent=' + agent : '') + (intent ? '&intent=' + intent : '') + (playbookId ? '&playbookId=' + playbookId : '');
  var label = type === 'schedule' ? 'Schedule in Devin' : type === 'playbook' ? 'Create Playbook' : type === 'knowledge' ? 'Add to Knowledge' : agent === 'advanced' ? 'Try in Devin' : agent === 'dana' ? 'Try in Dana' : agent === 'ada' ? 'Try in Ask Devin' : 'Try in Devin';
  var buildUrl = function (text) {
    var encoded = encodeURIComponent(text);
    if (type === 'schedule') return 'https://app.devin.ai/settings/schedules/create?' + utm + agentParams + '&prompt=' + encoded;
    if (type === 'playbook') return 'https://app.devin.ai/settings/playbooks/create?' + utm + '&body=' + encoded;
    if (type === 'knowledge') return 'https://app.devin.ai/knowledge?' + utm + '&body=' + encoded;
    if (agent === 'ada') return 'https://app.devin.ai/search?' + utm + '&noSubmit=true&prompt=' + encoded;
    return 'https://app.devin.ai/?tags=' + tag + '&' + utm + agentParams + '&prompt=' + encoded;
  };
  const ref = React.useRef(null);
  const [href, setHref] = React.useState('#');
  React.useEffect(() => {
    if (!ref.current) return;
    var codeEl = ref.current.querySelector('pre code');
    if (codeEl) {
      var text = codeEl.textContent.trim();
      if (text) setHref(buildUrl(text));
    }
    var header = ref.current.querySelector('[data-component-part="code-block-header"]');
    if (header && !header.querySelector('.prompt-block-devin-link')) {
      var link = document.createElement('a');
      link.href = href;
      link.target = '_blank';
      link.rel = 'noopener noreferrer';
      link.className = 'prompt-block-devin-link';
      link.style.cssText = 'display:inline-flex;align-items:center;gap:6px;text-decoration:none;color:#fff;font-size:11px;font-weight:500;padding:4px 10px;border-radius:6px;white-space:nowrap;background:#317CFF;transition:background 0.2s;margin-left:8px;';
      link.innerHTML = '<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6"/><polyline points="15 3 21 3 21 9"/><line x1="10" y1="14" x2="21" y2="3"/></svg> ' + label;
      link.onmouseenter = function () {
        link.style.background = '#2968D9';
      };
      link.onmouseleave = function () {
        link.style.background = '#317CFF';
      };
      header.appendChild(link);
    }
    var existingLink = ref.current.querySelector('.prompt-block-devin-link');
    if (existingLink && href !== '#') existingLink.href = href;
  });
  return <div className="prompt-block" ref={ref}>{children}</div>;
};

<UseCaseHero title="Bulk-Plan Your Ticket Backlog" description="Multi-select tickets in Linear and get confidence-scored implementation plans for your entire backlog." prompt="Review all tickets in our current sprint backlog. For each one, analyze the codebase, provide a confidence score (green/yellow/red), and post an implementation plan as a comment on the ticket. Don't start implementation — just scope." category="Project Management" features="Integrations, Playbooks" devinUrl="https://app.devin.ai/settings/connections/linear" />

<div className="uc-detail-wrapper">
  <Tip>Don't want to set this up manually? Paste a link to this page into a Devin session and ask it to set everything up for you.</Tip>

  <Steps>
    <Step title="Connect Linear">
      Go to [**Settings > Connections > Linear**](https://app.devin.ai/settings/connections/linear?utm_source=docs\&utm_medium=use-case-gallery) and click **Connect**. You'll authorize Devin to access your workspace and choose which teams it can see. You can also use [Jira](/integrations/jira) instead if that's your team's ticketing system.

      Once your [Linear](/integrations/linear) integration is active, check the **Synced playbook labels** section in the Linear settings. The `!plan` [playbook](https://app.devin.ai/settings/playbooks/b0d9a34380374c3e903d900d340d8da7?utm_source=docs\&utm_medium=use-case-gallery) is set as the default — it tells Devin to analyze and comment on tickets without writing code.

      <Note>For playbook labels to sync to Linear automatically, your Linear workspace must have **Manage workspace labels** set to **All members** (found under Linear's **Settings > Security**). If that's not enabled, you'll need to create the labels manually in Linear.</Note>
    </Step>

    <Step title="Select tickets and add the Devin label">
      Open your backlog in [**Linear**](https://linear.app), press **Cmd+A** to multi-select tickets (or Shift+Click for a specific range), then right-click and select **Add label > Devin**. To use a specific playbook, choose a synced label like `!plan` from the **Devin Playbooks** label group instead.

      Devin begins scoping every selected ticket in parallel. Within a few minutes, each ticket gets a detailed comment with a confidence score and implementation plan.
    </Step>

    <Step title="Read Devin's analysis on each ticket">
      Devin posts a structured comment directly on every ticket. Each comment includes a **confidence score** (🟢 🟡 🔴), the **relevant files and modules** it found in your codebase, a step-by-step **implementation plan**, and any **open questions** that need a human answer before Devin can proceed.

      | Ticket  | Title                     | Score | What Devin found                                                                                 |
      | ------- | ------------------------- | ----- | ------------------------------------------------------------------------------------------------ |
      | FE-412  | Dark mode toggle          | 🟢    | Theme context exists at `src/contexts/ThemeContext.tsx`; toggle pattern used in 3 other settings |
      | FE-419  | Date picker timezone bug  | 🟢    | Bug isolated to `formatLocalDate()` in `src/utils/dates.ts`; unit test missing                   |
      | BE-203  | Migrate prefs to Postgres | 🟡    | 14 call sites across 6 services — needs clarification on rollback strategy                       |
      | BE-210  | Rate limiting on webhooks | 🟢    | Existing rate limiter middleware at `src/middleware/rateLimiter.ts`; just needs config           |
      | INF-102 | k8s health check          | 🟢    | Readiness probe already exists at `/healthz`; liveness probe follows same pattern                |

      **What the scores mean:**

      * **🟢 Green** — Devin can handle this autonomously. Click the link in Devin's comment to kick off a session immediately.
      * **🟡 Yellow** — Devin has specific questions. Answer them in the ticket thread or in [Spaces](/product-guides/knowledge), and Devin re-evaluates — often upgrading to green.
      * **🔴 Red** — Best assigned to a human engineer, but Devin's codebase analysis gives you a head-start on scoping.

      <Tip>With the Linear integration installed, Devin natively has access to Linear's tools — so your playbook can instruct Devin to update ticket labels based on its findings. For example, Devin could add a `Green`, `Yellow`, or `Red` label to each ticket based on its confidence score. Since labels can trigger other automations, you can chain workflows — e.g., a `Green` label could kick off a second Devin session that starts implementation.</Tip>
    </Step>

    <Step title="Set up automation triggers for continuous planning">
      Instead of manually labeling tickets each time, configure an **automation trigger** so new tickets are planned the moment they hit your backlog.

      In [**Settings > Connections > Linear**](https://app.devin.ai/settings/connections/linear?utm_source=docs\&utm_medium=use-case-gallery), scroll to **Automation triggers** and click **Add trigger**:

      * **Teams**: Select the teams to auto-plan (e.g., "Engineering", "Platform")
      * **Statuses**: Fire when a ticket moves to a specific status like "Triage" or "Todo"
      * **Labels**: Optionally restrict to specific labels (e.g., only `Feature` or `Improvement` tickets)
      * **Playbook**: Select `!plan` so Devin scopes and comments without writing code

      <Tip>You can duplicate the `!plan` [template playbook](https://app.devin.ai/settings/playbooks/b0d9a34380374c3e903d900d340d8da7?utm_source=docs\&utm_medium=use-case-gallery) and customize it for your organization — for example, adjusting the output format, adding repo-specific instructions, or changing which details Devin includes in its comments.</Tip>

      Triggers use [edge detection](/integrations/linear) — they only fire when a ticket *transitions* into a matching state, not for tickets already in that state. Every new ticket that enters your "Todo" column now arrives pre-analyzed with a confidence score and implementation plan, ready for your team to review and prioritize.
    </Step>
  </Steps>
</div>
