如何根据 TFS 自定义工作项中的每周偏移量创建截止日期 [英] How to create a due date based off a weekly offset in TFS custom work item
问题描述
如何根据 TFS WIT 定义中工作项的时间偏移创建默认日期?
How can I create a default date based off a time offset for a work item in TFS WIT definition?
在 WIT 部分,您可以定义 FIELD 值.是否有可能有一个NumberOfWeeks"字段,然后在第一次创建工作项时生成一个 DueDate?(从"状态转换为打开"状态).我知道您可以默认使用系统时钟,但您可以为其添加偏移量吗?
In section of the WIT, you can define FIELD values. Is it possible to have, say a "NumberOfWeeks" FIELD and then generate a DueDate when the work item is first created? (Transitions from "" to "Open" states). I know you can default to the system clock, but can you add an offset to that?
这个想法是,在创建自定义任务时,用户将在NumberOfWeeks"中输入一个数字,当创建该工作项时,它将采用当前日期加上周数,并使用该日期填充截止日期.
The idea is, when creating a custom Task, the user will put a number in "NumberOfWeeks" and when that work item is created, it will take the current date plus the number of weeks and populate a due date with that date.
目前使用 TFS2015.
Currently using TFS2015.
推荐答案
根据我的理解,你要创建一个类似于 原始估计.TFS 将根据创建者指定的值自动生成截止日期,并将遵循以下规则 due date= work item creator time+ NumberOfWeeks
According to my understanding, you want to create a filed similar to Original Estimate . TFS will auto generated the due date based on the values creator specify and it will follow the rule as due date= work item creator time+ NumberOfWeeks
它还具有类似的功能,例如计算出的状态天数"字段和用于跟踪工作项的自创建天数".
It also have similar functions like a calculated "Days in State" field, and "Days since created" for tracking workitems.
您要查找的是 TFS 中的一种计算字段.
What you are looking for is a kind of calculated fields in TFS.
很遗憾,暂时不支持,已经有相关的用户声音,您可以查看以下链接:
Unfortunately,this is not support for now, there had been a related uservoice, you could take a look at below links:
支持 TFS 中的计算字段
这篇关于如何根据 TFS 自定义工作项中的每周偏移量创建截止日期的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!