TFS Web access "client cache" (2015.2 on-premise)

96 Views Asked by At

Web Access do Something like "client cache" when i open a Work Item edit Form

1st open : Web Access call TFS API to update all fields (ex : http://TFSServeur:8080/tfs/Collection/_api/_wit/workitems?__v=5&ids=8779)

2nd open : Web Access not call TFS API

An idea to always call API ? Somthing in TFS Web Access config ? Thanks

2

There are 2 best solutions below

0
On BEST ANSWER

No, no way to do it in TFS 2015.2. You need to click refresh button to refresh the work item.

BTW: There is refresh() method that can call it in onLoaded event, but it isn’t applied for TFS 2015.2. (Works fine in Visual Studio Team Services)

0
On

You cannot do that via Web Access directly.

To update the fields the http needs to be a "PATCH " request. When you open a url in a browser directly, those are "Get" requests.

So, you can update the work items use a web development tool (such as Postman) that lets you specify the http PATCH request method. It's not "client cache" but really update.

Please see the REST API to Update work items for details.

enter image description here