TeamPlain - Revisit

TL;DR

Shows how to use JavaScript to shorten long project names in a TeamPlain dropdown, offering a workaround for poor project name compartmentalisation in Team Foundation Server.

2 April 2007
Written by Martin Hinshelwood
1 minute read
Comments
Subscribe

I ran into some problems that I blogged on in my TeamPlain - Install and initial views  post. I have got a work around for the long project name problem, but it only works when you really daft project names like ours:

“XXEMEA-UK-Area-Dept-BusinessUnit-[Project Name]”

What I have done is rewrite this drop down list after it has been rendered using JavaScript!

Eww, I hear you say. Well as team server does not support compartmentalization of projects out of the box the long project names must stay.

Here is the code:

Put it after the drop down list by the id of “cmbProjects” and change the remove function calls for whatever you need.

I know it is ugly, but it is the sort of “Tactical” work around that gets the short term problem sorted.

I permanent solution would be nested projects (Or and Organizational Unit separator for the project name) from Microsoft, but I don’t think it is on the cards in the near future!

Technorati Tags: ALM

Comments
Subscribe

What to read next

Article Engineering Excellence

Branch madness!

Describes a complex source control issue in TFS involving branch mismanagement, its impact on merging, and step-by-step actions taken to …

Read article
Article DevOps

TFS for cross team and cross business line work item tracking

Explains how to use a single Team Project and Team Field in TFS to streamline cross-team work item tracking, reporting, and collaboration …

Read article
Article

Solution to sub sites in Sharepoint 3.0 with Team Foundation Server

Explains how to configure Team Foundation Server to create SharePoint 3.0 project portals as sub-sites, including manual and automated setup …

Read article