20. May 2011 17:50
I need to attach files to work items that are larger than 4KB on TFS 2010.
Use the web services on the Application Tier to increase the attachment size.
The default value of work item attachments is 4KB. However, that limit can be adjusted up to 2GB if required. To update the value you must be a TFS Admin and on the TFS Application tier to perform this process.
Open IIS Manager and expand <Server>\Sites\Team Foundation Server\tfs\_tfs_resources\WorkItemTracking\v1.0. If using Server 2008 switch to Content View to see the webservices. Right click on ConfigurationSettingsService.asmx and select Browse.
The trick to making this work is to replace “_tfs_resources” with the collection name.
After you replace “_tfs_resources” with your collection name press Enter to reload the page. Now you can use the SetMaxAttachmentSize method to increase the file size.
16. May 2011 18:10
I need to script my work item query administation.
Use the Work Item Query Administration tool from CodePlex http://wiqadmin.codeplex.com/
This will list out all the queries and the paths you need to export them
wiqadmin list /collection:http://MytfsUrl:8080/tfs/defaultcollection /p:MyProject /recursive
This is how you can export one once you know the path. Make sure you use “ on the path
wiqadmin export /collection:http://MytfsUrl:8080/tfs/defaultcollection /p:MyProject /n:"Team Queries/Iteration 1/Active Bugs" /f:bugs.wiql