创建任务板模板 [英] Creating a Task Board Template

查看:31
本文介绍了创建任务板模板的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

基本想法是我希望能够说制作一个新的承包商任务板主模板.我将有一个称为 Contractor Integration 的迭代路径.里面是一个主模板,其中有 4 个故事和每个故事 10 个任务.我希望能够通过更改为其分配的名称来为每个新来的人使用此模板.所以它几乎需要克隆 4 个故事和 10 个任务,以便在每次我得到一个新人时分配给一个新人.您知道从哪里查看或从哪里开始的任何指示吗?

The basic idea is that I want to be able to say make a new contractor taskboard master template. I'll have an iteration path called Contractor Integration. Inside it would be a master template where it has 4 stories and 10 tasks per story. I would like to be able to use this template for every new person that comes through by just changing the name it is assigned to. So it would need to pretty much make a clone of the 4 stories and 10 Tasks to be assigned to a new person every time I get a new person. Do you know of any pointers where to look or start?

我尝试导出到 Excel 工作表,只是复制任务,但任务不会与我复制的故事保持联系.任何帮助将不胜感激,谢谢!如果不清楚,我可以提供更多信息.

I've tried exporting to an Excel sheet and just just copy the tasks but the tasks don't stay linked to the stories that I copy. Any help would be appreciated, thanks! I can provide more info if it is not clear.

哦,我注意到这可能已经是 TFS 2015 中的一个功能,但我使用的是 TFS 2013.

OH I noticed that this might be already a feature in TFS 2015 but I'm using TFS 2013.

您知道是否有办法使此过程自动化?因为我希望能够输入新人的姓名,它应该自动将他们分配到我拥有的主任务列表中.

Do you know if there is a way to automate this process? As I wish to just be able to type in the names of the new people and it should automatically assign them to the Master Task List I have.

推荐答案

手动

您可以在 Excel 中执行此操作,但在导出并重新导入时,您需要使用分层查询.

Manually

You can do this in Excel, but when exporting it and importing it back in you need to use a hierarchical query.

  • 确保将查询类型"设置为:工作项树
  • 树的类型"到:父/子
  • 在查询的上半部分将工作项类型设置为用户故事"
  • 在查询的下半部分将工作项类型设置为任务"

现在,如果您在 Excel 中打开此查询,您会注意到小树图标:

Now if you open this query in Excel you'll notice the little tree icon:

然后确保您单击选择列",然后单击添加必需"按钮用于任务和用户故事工作项类型:

Then make sure you click "Choose Columns" and the click the "Add Required" button for the Task and the User Story work item type:

确保为工作项设置正确的迭代和区域以显示在板上.

Make sure you set the right Iteration and Area for the work items to show up on the board.

使用 Excel 中的添加树级别"按钮添加其他树级别(它们表示为标题 1"、标题 2"、标题 3"等):

The use the "Add Tree Level" button in Excel to add additional tree levels (they're represented as "Title 1", "Title 2", "Title 3", etc):

然后粘贴到您的模板中,其中每个子项都比其父项缩进一级.

Then paste in your template where each child is indented one level from its parent.

当您将其推回 TFS 时,它将导致正确的父子关系.

When you push this back to TFS it'll result in the correct parent-child relationship.

如果您想自动执行此过程,您可以将 Powershell 与 TFS 客户端对象模型结合使用.连接到 TFS、使用来自客户端对象模型的 WorkItemStore 类并完全自动创建任务非常简单.

If you want to automate this process you can use Powershell in combination with the TFS Client Object Model. It's quite straightforward to connect to TFS, use the WorkItemStore class from the Client Object Model and fully automate the creation of tasks.

可以在这里找到一个很好的基础,尽管上次我问还没有 cmdlet 在工作项之间创建链接:

A good basis can be found here, though last time I asked there was no cmdlet yet to create links between workitems:

实现这一目标的对象模型代码非常简单,解释如下:

The Object Model code to achieve that is very straightforward and is explained here:

这篇关于创建任务板模板的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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