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

# 清理工程积压

> 让 Devin 为你清理工程积压

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>;
};

<div id="overview">
  ## 概览
</div>

Devin 可以帮助你在 GitHub、Jira 和 Linear 等平台上管理和整理 issue 待办列表，将待办维护中繁琐的工作自动化处理，同时确保你的团队专注于最重要的任务。

<div id="common-backlog-management-scenarios">
  ## 常见待办事项管理场景
</div>

<Tabs>
  <Tab title="GitHub">
    <iframe width="840" height="473" src="https://www.youtube.com/embed/jspBBw_SP9o" title="GitHub Issues Devin 集成" className="max-w-full" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen />

    在 GitHub Issue 中 @Devin，以启动一个新的 Devin 会话。

    ### 如何设置

    1. 将 [devin-on-label.yml](https://github.com/ankehao-demo/COBOL-Demo/blob/main/.github/workflows/devin-on-label.yml) 推送到任意 GitHub 仓库下的 `.github/workflows` 文件夹
    2. 创建一个名为 **`devin`** 的 GitHub Issue 标签
    3. 在 GitHub 仓库的 Secrets 中添加来自你 Devin 组织的 Devin API Key，名称为 `DEVIN_API_KEY`

    ### 工作原理

    1. 给 Issue 添加 **`devin`** 标签     <img src="https://mintcdn.com/cognitionai/qx13uHIrLQmFSSny/images/use-cases/integrations/clear-engineering-backlogs/1-github-label.png?fit=max&auto=format&n=qx13uHIrLQmFSSny&q=85&s=72b9a4b5aea0b67fb43b1a377b021b54" alt="为 Issue 添加 devin 标签" width="2184" height="1100" data-path="images/use-cases/integrations/clear-engineering-backlogs/1-github-label.png" />
    2. 触发 GitHub Actions 工作流，并在该 Issue 下自动创建一条评论，其中包含指向新 Devin 会话的链接
    3. Devin 会话会自动启动
           <img src="https://mintcdn.com/cognitionai/qx13uHIrLQmFSSny/images/use-cases/integrations/clear-engineering-backlogs/2-devin-github-response.png?fit=max&auto=format&n=qx13uHIrLQmFSSny&q=85&s=8000779effeb7e1d0628171edd6b962c" alt="Devin 会话" width="1984" height="1362" data-path="images/use-cases/integrations/clear-engineering-backlogs/2-devin-github-response.png" />
  </Tab>

  <Tab title="Jira 和 Linear">
    ### Jira 和 Linear 集成

    Devin 可以直接与 Jira 和 Linear 集成，帮助你管理 Issue 待办列表 (backlog) 。你可以在这两个平台上将工单分配给 Devin，并让它们自动转化为拉取请求 (PR) 。

    有关详细的设置步骤和配置选项，请参阅 [Jira 集成指南](/zh/integrations/jira) 和 [Linear 集成指南](/zh/integrations/linear)。
  </Tab>
</Tabs>

<div id="related-use-cases">
  ## 相关用例
</div>

* [测试与重构](/zh/use-cases/testing-refactoring)
* [迁移与现代化](/zh/use-cases/migration-modernization)
