> ## 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.

# チケットバックログをまとめて計画する

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="チケットバックログを一括で計画" description="Linear で複数のチケットを選択し、バックログ全体に対する確信度スコア付きの実装プランを生成できます。" prompt="現在のスプリントのバックログ内のすべてのチケットをレビューしてください。各チケットについてコードベースを分析し、確信度スコア（green/yellow/red）を付け、実装プランをチケットへのコメントとして投稿してください。実装は開始せず、スコープ定義のみ行ってください。" category="プロジェクト管理" features="連携, プレイブック" devinUrl="https://app.devin.ai/settings/connections/linear" />

<div className="uc-detail-wrapper">
  <Tip>手動でのセットアップが面倒ですか？このページのリンクを Devin のセッションに貼り付けて、すべてのセットアップを依頼しましょう。</Tip>

  <Steps>
    <Step title="Linear と連携する">
      [**Settings > Connections > Linear**](https://app.devin.ai/settings/connections/linear?utm_source=docs\&utm_medium=use-case-gallery) に移動し、**Connect** をクリックします。Devin にワークスペースへのアクセスを許可し、Devin から参照できるチームを選択します。チームのチケッティングシステムとして Jira を使っている場合は、代わりに [Jira](/ja/integrations/jira) を使用することもできます。

      [Linear](/ja/integrations/linear) との連携が有効になったら、Linear の設定にある **Synced playbook labels** セクションを確認します。`!plan` [playbook](https://app.devin.ai/settings/playbooks/b0d9a34380374c3e903d900d340d8da7?utm_source=docs\&utm_medium=use-case-gallery) がデフォルトとして設定されています。これは、Devin にコードを書かずにチケットを分析し、コメントするよう指示するものです。

      <Note>Playbook のラベルを Linear に自動同期するには、Linear ワークスペースで **Manage workspace labels** が **All members** に設定されている必要があります (Linear の **Settings > Security** 内にあります) 。これが有効になっていない場合は、Linear 上でラベルを手動で作成する必要があります。</Note>
    </Step>

    <Step title="チケットを選択してDevinラベルを追加します">
      [**Linear**](https://linear.app) でバックログを開き、**Cmd+A** を押してチケットを複数選択します (特定の範囲なら Shift+クリック) 。その後、右クリックして **Add label > Devin** を選択します。特定のプレイブックを使いたい場合は、代わりに **Devin Playbooks** ラベルグループから `!plan` などの同期済みラベルを選択します。

      Devin は、選択された各チケットのスコープ定義を並行して開始します。数分以内に、各チケットに信頼度スコアと実装計画を含む詳細なコメントが追加されます。
    </Step>

    <Step title="各チケットに対するDevinの分析を確認する">
      Devin は、すべてのチケットに対して構造化されたコメントを直接投稿します。各コメントには、**信頼スコア** (🟢 🟡 🔴) 、コードベース内で見つけた**関連ファイルとモジュール**、ステップごとの**実装プラン**、そして Devin が先に進む前に人間による回答が必要な**未解決の質問**が含まれます。

      | Ticket  | Title                     | Score | What Devin found                                                             |
      | ------- | ------------------------- | ----- | ---------------------------------------------------------------------------- |
      | FE-412  | Dark mode toggle          | 🟢    | `src/contexts/ThemeContext.tsx` に Theme コンテキストが存在し、他の 3 つの設定でトグルパターンが使用されている |
      | FE-419  | Date picker timezone bug  | 🟢    | バグは `src/utils/dates.ts` 内の `formatLocalDate()` に限定されており、ユニットテストが用意されていない    |
      | BE-203  | Migrate prefs to Postgres | 🟡    | 6 つのサービスにまたがる 14 箇所の呼び出しがあり、ロールバック戦略についての明確化が必要                              |
      | BE-210  | Rate limiting on webhooks | 🟢    | `src/middleware/rateLimiter.ts` に既存のレートリミッターミドルウェアがあり、設定を行うだけでよい             |
      | INF-102 | k8s health check          | 🟢    | `/healthz` に Readiness Probe が既に存在し、Liveness Probe も同じパターンに従えばよい             |

      **スコアの意味:**

      * **🟢 Green** — Devin が自律的に対応できます。Devin のコメント内のリンクをクリックすると、すぐにセッションを開始できます。
      * **🟡 Yellow** — Devin にいくつかの具体的な質問があります。チケットスレッド内、または [Spaces](/ja/product-guides/knowledge) でそれらに回答すると、Devin が再評価し、多くの場合 Green へと格上げします。
      * **🔴 Red** — 人間のエンジニアに割り当てるのが最適ですが、Devin によるコードベース解析により、スコープの把握を素早く進められます。

      <Tip>Linear 連携をインストールすると、Devin は Linear のツールをネイティブに利用できるようになり、プレイブックから Devin に対して、調査結果に基づいてチケットのラベルを更新するよう指示できます。たとえば Devin は、信頼スコアに基づいて各チケットに `Green`、`Yellow`、`Red` ラベルを追加できます。ラベルは他の自動化をトリガーできるため、ワークフローを連鎖させられます。たとえば `Green` ラベルを付けることで、実装を開始する 2 つ目の Devin セッションをキックオフできます。</Tip>
    </Step>

    <Step title="継続的プランニング用の自動トリガーを設定する">
      毎回チケットを手動でラベリングする代わりに、**自動化トリガー** を設定して、新しいチケットがバックログに入った瞬間に自動でプランニングされるようにします。

      [**Settings > Connections > Linear**](https://app.devin.ai/settings/connections/linear?utm_source=docs\&utm_medium=use-case-gallery) に移動し、**Automation triggers** までスクロールして **Add trigger** をクリックします:

      * **Teams**: 自動でプランニングしたいチームを選択します (例: "Engineering"、"Platform")
      * **Statuses**: チケットが "Triage" や "Todo" などの特定のステータスに移動したときにトリガーされるようにします
      * **Labels**: 特定のラベルに限定する場合に使用します (例: `Feature` や `Improvement` のチケットのみ)
      * **Playbook**: `!plan` を選択すると、Devin がコードを書かずにスコープの確定とコメント作成を行います

      <Tip>`!plan` の[テンプレート Playbook](https://app.devin.ai/settings/playbooks/b0d9a34380374c3e903d900d340d8da7?utm_source=docs\&utm_medium=use-case-gallery)を複製して、自社向けにカスタマイズできます。たとえば、出力フォーマットの調整、リポジトリ固有の指示の追加、Devin がコメントに含める詳細の変更などが可能です。</Tip>

      トリガーは [edge detection](/ja/integrations/linear) を使用します。つまり、チケットがその状態に*遷移*して条件に合致したときにだけトリガーされ、すでにその状態にあるチケットには反応しません。これで "Todo" カラムに入る新規チケットはすべて、信頼度スコアと実装計画が事前に分析された状態で到着し、チームがレビューと優先度付けを行えるようになります。
    </Step>
  </Steps>
</div>
