locked
TFS 2017 Creating a Custom field which calculates difference between Original estimate and Completed work RRS feed

  • Question

  • Dear TFS users,

    I have a simple need from TFS 2018. I want to create a custom field which calculates difference between the Original estimate field and Completed work field. 

    Is this possible?

    With best regards,
    petar
    Sunday, November 12, 2017 7:05 PM

All replies

  • Hi Petar,

    Yes, it is possible. But the default rules can't achieve your requirement. You need to add a custom control to calculate two fields:

    https://docs.microsoft.com/en-us/vsts/work/customize/add-modify-field#custom-control

    Best regards,


    MSDN Community Support Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com

    Monday, November 13, 2017 7:16 AM
  • Hi Xinxin,

    Thank you very much for your response.

    From the link you shared I conclude I can use either Client object model or weblayout and control elements

    Can you tell me which should i Use:
    https://msdn.microsoft.com/en-us/library/bb130322

    https://docs.microsoft.com/en-us/vsts/work/customize/reference/weblayout-xml-elements

    I have used XML for process template edits, so I am familiar with this way of editing.

    With best regards,
    Petar

    Tuesday, November 14, 2017 6:48 AM
  • Hi  PetarB, 

    It's based on which work item form are you using. 

    When the new form roll out is enabled, the XML definitions for all work item types (WITs) in the collection are updated to include a WebLayout section within the FORM section.

    So if you are working on the new work item experience.  You should use the weblayout and control elements.

    For TFS 2017, the new form is automatically available when you add team projects to a new collection. For existing team projects, an admin must enable the new form.  Please double confirm it.

    MSDN Community Support Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com

    Saturday, November 25, 2017 7:54 AM