tfs2013 - How to refresh updated opened work item from TFS 2013 server side plugin? -


i trying create tfs 2013 server side plugin transition work item state depending upon fields. fields being updated correctly, not refreshed work item opened in client (vs team explorer). need manually press refresh button display correct state.

can force refresh displayed work item after state change plugin?

following code handling work item changed event.

if (null != workitem) {     workitem.partialopen();     if (!workitem.fields["almtool.ff.team.leader"].value.equals(string.empty))     {         if (workitem.fields["system.state"].value.equals("raised"))         {             workitem.state = "analyse";         }     }     else     {          workitem.state = "raised";     }     workitem.save();     workitem.store.refreshcache(true);     //workitem.close();     workitem.synctolatest();          } 

i've had same need long time ago. trying achieve in web access rather team explorer. web access, not possible, because of simple explanation:

my implementation in server-side , operation refresh happening in client-side.

but think team explorer not able either, since tfs don't give library make ui operation "open work item window, open pending changes windows, etc."

you've done synctolatest , tfs force user refresh first in order make change on work item after operation, user has refresh work item client-side first, manually.

if want achieve without user manually refreshing , web access ok you, should check if implementation done using tfs web access extensions run client-side. can take , gather detailed information them serkan's blog.


Comments

Popular posts from this blog

angularjs - ADAL JS Angular- WebAPI add a new role claim to the token -

php - CakePHP HttpSockets send array of paramms -

node.js - Using Node without global install -