Hakan Yildizhan
Hakan Yildizhan

Reputation: 182

TFS 2017 - work item Pre-Save event?

In TFS 2013 through custom extensions we were able to do field validation just before a work item is saved. This model supported a number of events including pre-save, field-change etc.

In TFS 2017 the extensions seem to be supporting only onFieldChanged, onLoaded, onUnloaded, onSaved, onReset and onRefreshed events. So we're unable to intervene right before a user saves the work item with new values, revert them back and prevent the item from saving & going into the database & firing our work item tracking web services with these (as per business rules) invalid values.

Is there any way to accomplish this in TFS 2017?

Upvotes: 1

Views: 292

Answers (1)

starian chen-MSFT
starian chen-MSFT

Reputation: 33738

Just listen onFieldChanged event, it will be fired immediately when a field be changed.

Upvotes: 1

Related Questions