Friday, September 18, 2009

When you want to customize a Work item in TFS2008, you will see that there’s not so many information to find about it.  In common it’s easy, especially when you use the Process Editor.  But I can say, when doing a lot of changes, you come to several problems.  I will try to write down the problems I had together with a solution or work around.  Also I will write down some strange effects I came across.  So let’s start.

First, it’s a lot easier to install the TFS Power tools (October 2008 is the latest release for the moment).  This will give you the Process Template Editor, which is a lot easier to customize your work items than the pure XML.  But it’s the first release and still not giving the user experience you have in VS. For example you don’t have intellisense.

Next, the validation is done when you save your item.  This is OK, only not all error messages are clear what the meaning is.

A little bit about the import in a project.  When choosing the import WIT menu, be sure to follow this order of steps:

  1. Locate the WI XML file
  2. Choose the project in which you want to import

If you don’t follow this order, the project selection is gone and the WI is imported in all your projects, which is something you don’t want during the testing phase.  Also after doing an import, restart your VS.  Why? Well, not always is the import visible if you don’t close your VS.  And if it’s visible, it could work or not.  Sometimes, you even got errors about object references and more.
The most irritating part was that while I was busy with the customization, the system got slower and slower (even when saving in between).  At a certain moment you even got an error.

Now that we have described some problems/solutions, we will go a little deeper into the customization itself.

First you need to define your fields.  Defining them means

  1. Give them a fieldname
  2. Select what type the field would be
  3. Choose a reference name.

This is easy, but be sure that when you create a new field you are sure about the type and reference name.  As when you want to change this later and the WI is already installed you can’t do this anymore.  You will get an error that there’s already a field of with a different type/reference name.

For the reference name, you could use your own name, but it always contain at least 1 period.  You could also use standard TFS Reference names like System.Title, Microsoft.VSTS.Common.ResolvedBy,…  The problem is that I haven’t found anywhere some documentation about all the internal defined reference names.  If you want to add or maintain existing states, you don’t have to add your one state field.  Mostly there will be a state field already defined, which gets the values out of the workflow.

After you have defined all your fields, you can put them on screen.  This is done in the layout tab.  When you’re expecting a nice form designer I have to disappoint you.  It’s an old fashion form designer.  Through a tree you have to add groups and columns in where you can add your fields.  But when adding a column don’t forget to set the width of this column even when it’s 100%, otherwise you got an error during the validation.

You can add rules to a field.  Rules like required, default, even a when statement can be used.  One of the rules I used, and which give a strange effect, is the empty rule.  I used this rule together with the whennot rule:

When system.state is not in state resolved, empty the field.

The field is empty, but with the site effect that the field is also read-only.  The moment the state is changed into resolved, the field becomes editable.
When adding fields, you think that everywhere where you need to select a field, you can use the field name.  yes?  Well none of this is true.  When you need to select a field for example in a rule or when putting it on the screen, you need to use the reference name.  And here is the problem.  The drop downs are mostly too small.  So you see for example x times “Microsoft.VSTS.” and not knowing which the field you need is.

   
Bad dropdown               Good dropdown

Overall, I’m happy with the process editor.  Especially when doing a lot of customization. It’s better than the pure XML editing.  But the tool can have a lot of improvements.  Haven’t checked for TFS2010, but I hope that it works a little bit more user friendly.

We will do some more customization in the future.  I will blog about them specific the moment we start with it.

TFS
9/18/2009 1:09:03 PM (Romance Standard Time, UTC+01:00)  #     | 
 Thursday, September 17, 2009

Roy Osherove has started a new group.  a group about team leadership.  If you are a team leader, beginner or experienced, this group is just for your.  Since the start, there are already a few interresting discussions going on.

Because there is not so much information on the level of people or skills for team leads, Roy already started his 5ways blog and now the google group about leading the team : http://groups.google.com/group/leading-teams.

9/17/2009 8:04:26 AM (Romance Standard Time, UTC+01:00)  #     | 
 Tuesday, September 15, 2009

How can you say No by saying Yes or let your manager say No in your place?

Well read these two great articles :

If you read these articles you will see that Visual Management becomes more and more important, especially for this statement.

9/15/2009 7:34:54 AM (Romance Standard Time, UTC+01:00)  #     | 
 Friday, September 11, 2009

Telerik has just released two TFS tools : TFS Work item Manager and TFS Project Dashboard.  And the best part is : They are FREE.  yes you read it correctly FREE.  Inf act Telerik released them, but it is Imaginet Resources who build tehm.

The tools are fully build using Telerik's RadControls for WPF, which should give a great user experience, and it is.

The version now released is still in beta, so you still could encounter a few bugs.  But they have a great forum, and looking through the forum posts they do a great job with replying to the problems.

I already did a quick test and it looks good.  Going to deep dive in it the next couple of days/weeks.  Especially I want to see if it's better than the Episerver dashboard we are using for the moment.  Also I will hceck it against the Conchango Dashboard, because the version we have in our company of teh Conchango Dashboard is very slow (They have a newer version so i will check that also).

Just encountered 2 problems for the moment:

  1. Starting up the taskboard from within the Work Item Manager works, but not the taskboard settings sometimes gives an error on opening.
  2. Didn't manage to startup the project dashboard.  It gives me a black screen.

Find all info here : http://www.telerik.com/products/tfsmanager-and-tfsdashboard.aspx

A screenshot

TFS | WPF
9/11/2009 8:20:29 AM (Romance Standard Time, UTC+01:00)  #     | 
 Thursday, September 10, 2009

Roy Osherove has blogged an interesting article on his Team Leadership blog Five Whys.  In this article he talks about how many time a team lead should be with his team to be an effective teamlead for his team.

So if you're a teamlead reaad this article : http://5whys.com/blog/spend-at-least-50-of-your-time-with-your-team.html

Agile | Scrum | Teamlead
9/10/2009 9:55:20 AM (Romance Standard Time, UTC+01:00)  #     | 
 Tuesday, September 01, 2009

Yesterday, on 2 PC's the installation of SQL Server 2005 failed.  The first PC failed with the installation of MSXML6 and on SQL Server VSS Writer.  the second PC failed on SQL Server VSS Writer.  We couldn't find out why, even with the install log.

To solve this we put on the extended log on MSI's.  This is a logging for each step of the MSI and results in a big log file.  It's called voicewarmup. So just set it on before the installation and after the installation, set it back off.  You will find the log file in the TEMP folder under the name msiNNNNN.log.  Now you can walk through this log file and find the solution.

Find more info here : http://msdn.microsoft.com/en-us/library/aa369776(VS.85).aspx and here http://www.pctools.com/guides/registry/detail/1127/

9/1/2009 2:53:48 PM (Romance Standard Time, UTC+01:00)  #     | 
 Friday, August 28, 2009

yesterday evening, we upgraded our TFS Server with the Conchango Scrum template 2.2.  For testing we created a testproject.  Afterwards when we want to delete the project we got following error:

TF30063: You are not authorized to access <tfsserver>

As I'm in the TFS Admin group I thought this would be no problem.  But it is.  And the problem is at the level of the Sharepoint Project Portal.  I was not defined in site collection administration.  It seems that the Farm admins supports AD groups, while the Site collection administrators doesn't.

So the solution is easy.

  1. Go to the team project portal
  2. Click on site actions and choose Site settings
  3. Click on Site collection administrators
  4. Add your account

Now, you can delete your project.

If you want to know more, read more on this technet article.

TFS
8/28/2009 9:01:33 AM (Romance Standard Time, UTC+01:00)  #     | 
 Friday, August 21, 2009

At least one time a year, Visug announces an international speaker.  This time they got Brad Abrams, program Manager @ Microsoft and author of Framework Design Guidelines.

Brad will talk about these guidelines.  Just a must-attend session.

More info and register for this FREE event : http://visug.be/Eventdetails/tabid/95/EventId/16/Default.aspx

8/21/2009 7:37:58 AM (Romance Standard Time, UTC+01:00)  #     |