broAhmed
broAhmed

Reputation: 192

Migrating legacy TFS extension from TFS 2015 to TFS 2017: WITCONTROLS.WorkItemControl gone?

Background: We have some legacy TFS extensions running in TFS 2015 update 1. We're migrating those extensions to TFS 2017.

Problem: We have the following line in one of our extensions:

ExtensionName.inherit(WITCONTROLS.WorkItemControl, { ...

WorkItemControl no longer seems to exist in TFS 2017. Anyone know the new API endpoint to call?

Thanks!

EDIT: Here's the top of the extension:

TFS.module("ExtensionProject.ExtensionName",
[
    "TFS.WorkItemTracking.Controls",
    "TFS.WorkItemTracking"
],
function () {
    // module content
    var tfsContext = require("Presentation/Scripts/TFS/TFS.Host.TfsContext");
    var vssCore = require("VSS/Utils/Core");
    var WITOM = TFS.WorkItemTracking,
        WITCONTROLS = TFS.WorkItemTracking.Controls,
        TFSHost = tfsContext.TfsContext,
        delegate = vssCore.delegate,
        moduleBaseUrl = TFS.getModuleBase("ExtensionProject.ExtensionName.js");

Upvotes: 0

Views: 322

Answers (1)

Sridhar
Sridhar

Reputation: 11

TFS.WorkItemTracking.Controls no longer consists WorkItemControl class. use WorkItemTracking/Scripts/Controls/WorkItemForm/WorkItemControl.

Upvotes: 1

Related Questions