How to create a due date based off a weekly offset in TFS custom work item

若如初见. 提交于 2020-01-16 18:50:05

问题


How can I create a default date based off a time offset for a work item in TFS WIT definition?

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?

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.

Currently using TFS2015.


回答1:


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.

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:

Support calculated fields in TFS

https://visualstudio.uservoice.com/forums/330519-visual-studio-team-services/suggestions/3595615-support-calculated-fields-in-tfs?page=1&per_page=20




回答2:


You can try with TFSAggregator. This plugin will allow you to calculate the fields.

Example: Calculate Fields



来源:https://stackoverflow.com/questions/48675328/how-to-create-a-due-date-based-off-a-weekly-offset-in-tfs-custom-work-item

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!