如何将工作项从一个组织移动到另一个组织 [英] How do I move Work Items from one organization to another

查看:28
本文介绍了如何将工作项从一个组织移动到另一个组织的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们在一个项目中有许多工作项.现在,我们的 devops 中有另一个组织,我们希望将所有现有的工作项从旧组织(项目)转移到新组织.这怎么办?

We have a number of Work Items in a project. Now, there is another organization in our devops and we wish to move all our existing Work Items from the old organization (project) to the new one. How can this be done?

我见过人们之前讨论过这个问题,还有一些评论说我们使用 excel".但没有关于如何实际执行此操作的信息.

I've seen people discussing this before, and some comments saying "we use excel". But no information about how to actually do this.

推荐答案

没有针对此的内置解决方案.对于 Excel 来说,有一个技巧可以进行尽力而为的迁移,但您会丢失一些东西.

There is no built-in solution for this. For Excel there is a trick that does a best-effort migration, you do loose some things.

  • 在 Azure DevOps 中创建一个基于树的查询,其中包含要迁移的所有工作项
  • 打开 Excel
  • 使用团队选项卡拉入您要迁移的工作项
  • 点击新建列表并连接到源组织
  • 选择您在第一步中创建的工作项查询
  • 点击选择列并添加所有列
  • Create a Tree based query in Azure DevOps that has all the work items you want to migrate
  • Open Excel
  • Use the Team tab to pull in the work items you want to migrate
  • Click New List and connect to the source organization
  • Select the Work Item Query you created in the first step
  • Click Choose Columns and add all columns

您现在在一个 Excel 文件中拥有要导入的数据.新建一个excel文件,将数据推送到另一个账户:

You now have the data you want to import in one excel file. Create a new excel file to push the data to the other account:

  • 打开 Excel
  • 使用团队标签来拉取工作项
  • 点击新建列表并连接到目标组织
  • 选择输入列表,这样您就不会绑定到查询
  • 点击选择列并以相同的顺序选择所有相同的列
  • 点击添加树级别并转换为父子
  • 重复添加树级别以匹配源excel的深度
  • 将所有字段从源文件复制到目标 excel 文件
  • 清除目标 EXCEL 文件中的 ID 列
  • 修复出现的问题(用户名、区域路径、项目名称等)
  • 点击发布以在目标组织中创建工作项.
  • Open Excel
  • Use the Team tab to pull the work items
  • Click New List and connect to the target organisation
  • Select the Input List so you're not bound to a query
  • Click Choose Columns and select all the same columns in the same order
  • Click Add tree level and convert to parent child
  • Repeat Add tree level to match the depth of the source excel
  • Copy all the fields from source to target excel file
  • CLEAR THE ID COLUMN ON THE TARGET EXCEL FILE
  • Fix issues that appear (usernames, area paths, project name etc)
  • Hit Publish to create the work items in the target organisation.

丢失的东西

您将失去以下内容:

  • HTML 格式
  • 附件
  • 非父子链接
  • 某些日期将重置(创建、...)
  • 某些流程工作流可能会阻止创建处于正确状态的工作项
  • 自定义板列
  • 工作项的修订

有像 Martin Hinshelwoods Migration Tools 这样的工具可以将工作项历史从一个帐户重播到另一个帐户.更新所有配置需要一些努力,但在复制您的工作项方面会做得更好.

There are tools like Martin Hinshelwoods Migration Tools that can replay work item history from one account to another. It takes a bit of effort to update all the configurations, but it will do a much better job at copying your work items over.

见:

这篇关于如何将工作项从一个组织移动到另一个组织的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆