Azure DevOps CSV 导入问题 [默认状态 'Done',关闭日期字段]

标签 azure csv azure-devops azure-functions kanban

目前,我正在尝试将大约 1600 个任务从 Azure DevOps 看板导入到另一个看板(通过浏览器)。我这样做遇到了两个问题:

  1. 无法导入带有“结束日期”字段的任务,它显示:

Value of a readonly field Closed Date was modified. Please revert the Closed Date values or remove the column from the input file and and try to import again. enter image description here

  • 删除带有“关闭日期”的列将导致默认状态“完成”出现问题,它表示:
  • The field 'State' contains the value 'Done' that is not in the list of supported values. enter image description here

    我已将项目设置从旧组织复制(手动)到新组织,例如:

    1. 进程\状态(并将其分配给项目): enter image description here
    2. 旧看板中设置的时间和区域设置

    此外,我必须删除 ID 列,因为它导致了问题: enter image description here

    由于存在问题,仍然无法导入所有这些任务。我正在寻找如何解决此问题的任何提示。 下面是 CSV 的示例:

    Work Item Type,Title,Created By,Created Date,Assigned To,State
    Issue,Some test task number 1,TestCreator,02.06.2020 15:19:24,TestWorker,"Done"
    Issue,Some test task number 2,TestCreator,02.06.2020 15:20:23,TestWorker,"Done"
    

    最佳答案

    在 Azure DevOps 中通过 CSV 文件导入工作项时,首先确保以下陈述正确:

    1.导出的源项目和导入的目标项目具有相同的工作项类型配置,共同点需要具有相同的流程配置,例如工作项类型、状态等。

    2.您导入的所有工作项均以新状态创建。此规则意味着您不能指定不符合新状态字段规则的字段值。 (这就是为什么“完成”没有被列为支持的值)

    3.确保您没有将 ID 分配给您要添加的新工作项。工作项 ID 在一个 Azure DevOps 组织中是唯一的。 (ID会导致以下错误信息) enter image description here

    满足上述先决条件后,导入过程会将导入的工作项以未保存的状态加载到查询 View 中。没有分配 ID。验证结果是否是您想要的。然后,选择“保存项目”以保存工作项目。

    enter image description here

    如果导入时仍然出现错误,请尝试减少每次导入尝试的工作项计数。正如您所说,您有大约 1600 个任务,您可以通过将它们分成多个查询来导入。

    关于Azure DevOps CSV 导入问题 [默认状态 'Done',关闭日期字段],我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/74359879/

    相关文章:

    java - 将文本从 Azure 保存到列表中

    javascript - 获取 csv 条目以在 D3.js 中进行分组

    tfs - TF10121 错误 Visual Studio 2013

    python - 如何使用 python 比较两个不同的 csv 文件?

    jquery - 使用 jQuery 和 HTML 导出为 CSV

    tfs - 如何从远程 powershell 脚本设置任务变量?

    azure - 通过 Azure CLI 登录帐户失败

    git - TFS 服务 GitContinouslyDeploymentTemplate.12.xaml 无法加载参数

    asp.net - 为什么 appcmd.exe 解锁配置在 Azure 模拟器上不起作用?

    azure - Windows Azure 和多个存储帐户