TeamPlain – Revisit

Topic(s)
Audience

Everyone

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:

<script type=”text/JavaScript”>

function Remove(ProjectString,ThingToRemove)
{
if (ProjectString.indexOf(ThingToRemove) == 0)
{
ProjectString = ProjectString.replace(ThingToRemove, ”);
}
return ProjectString
}

var mylist=document.getElementById(“ph1_cmbProjects”);
for (i=0;i<=mylist.length-1;i++)
{
mylist.options[i].text = Remove(mylist.options[i].text,’XXEMEA-UK-Area2-Dept1-BusinessUnit1-‘)
mylist.options[i].text = Remove(mylist.options[i].text,’XXEMEA-UK-Area2-Dept1-BusinessUnit2-‘)
mylist.options[i].text = Remove(mylist.options[i].text,’XXEMEA-UK-Area2-Dept1-‘)
mylist.options[i].text = Remove(mylist.options[i].text,’XXEMEA-UK-Area1-PP-‘)
mylist.options[i].text = Remove(mylist.options[i].text,’XXEMEA-UK-Area1-TFS-‘)
}

</script>

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:  

Create a conversation around this article

Share on Facebook
Share on Twitter
Share on Linkdin

Read more

Martin Hinshelwood
In organizational development and team dynamics, Agile (as the Agile Manifesto delineates) and Scrum (as the Scrum Guide outlines) guide teams not by solving their problems but by illuminating the issues that demand attention. These frameworks aim to identify and spotlight the challenges within a team or organization’s processes, effectively …
Martin Hinshelwood
This week, I participated in a Scrum.org Webinar hosted by Sabrina Love (Scrum.org Product Owner) as well as my colleagues, Joanna Płaskonka, Ph.D. and Alex Ballarin to discuss the state of learning and how immersive learning is the future of training. You can watch the video below to hear what …
Martin Hinshelwood
For a long time now I have been searching for that perfect domain that epitomised the vision, the why, of what I am trying to achieve with my customers and the industry at large. Now I have found it in http://nkdagility.com
Martin Hinshelwood
At the MVP Summit I was appalled by the number of people who asked questions about new features for supporting hierarchical tasks! I shared a disgusted look with Peter Provost and we had a quick (and I mean really quick) conversation that resulted in this post. it really comes down …