Search code examples
tfsworkitem

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


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.


Solution

  • 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