Archivos para 30/04/11

[TFS2010] HowTo: Create a field for a WorkItem with custom values, and easy to maintain

image47dd1de4

Good,

before starting to explain a simple way to modify the definition a WorkItem Type, comes the disclaimer:

It is always advisable to think about it 20 times before modifying processes guide or template of a Team Project, in other words: does not modify it because 95% of cases, the templates by default are sufficient.

Now that we have already laid the foundations, we are going to a specific scenario:

Need to add a combo to a workitem, for example a Bug, and that the values of the same are easy to edit and maintain.

To do this, we will use the Team Foundation Server Power Tools, and modify the definition of a Bug to give solution to the previous stage.

Tutorial

1. From Visual Studio 2010, access to the menu [Tools / / Process Editor / / Global List / / Open Global List from Server]. If we were not connected to a TP, because at this time we will have to connect.

2. In the form of editing, display the contextual menu and select the [new Global list]

image

3 Using the options from the editor, in this case I created a new list called [ExtendedBoolean] with the following values:

image

4. Once finished editing the list, press [OK]. This action saves changes in the global definition of items on the server ofTFS2010.

5 And now plays edit the definition of a Bug, so select the option [Tools / / Process Editor / / Work Item Types / / Open WIT from Server].

6 Select the appropriate Team Project and then the type of WorkItem that we want to modify.

image

7. In the WorkItem Type editing form, [Fields] tab create a new field called [ExtendedBoolean], of type String, with the following values.

image

8 Select the tab [Rules] and add a new rule of the type [ALLOWEDVALUES]

image

9. This will open the form for editing of the values that will support the WorkItem Field. In this case, click on [New] and select the global list we created in the previous steps.

image

10 Add the new field, the visual interface of edition of the WorkItem (as I have explained in detail in this post) and we can already see the combo with the values of the global list.

image

11 If we need to modify these values, rather than changing the definition of the WorkItem, we simply modify the global list.

Greetings @ Home

The Bruno

   

1 comentario

[TFS2010] HowTo: Crear un campo para un WorkItem con valores personalizados y de fácil mantenimiento

image47dd1de4

Buenas,

antes de comenzar a explicar una forma sencilla de modificar la definición un WorkItem Type, llega el disclaimer:

Siempre es recomendable pensarlo 20 veces antes de modificar la guía de procesos o plantilla de un Team Project, en otras palabras: no lo modifiques porque en el 95% de los casos, las plantillas por defecto son suficientes.

Ahora que ya hemos sentado las bases, vamos a un escenario concreto:

Necesidad de agregar un combo a un workitem, por ejemplo  un Bug, y que los valores del mismo sean fáciles de editar y mantener.

Para esto, aprovecharemos las Team Foundation Server Power Tools, y modificaremos la definición de un Bug para dar solución al escenario anterior.

Tutorial

1. Desde Visual Studio 2010, acceder al menú [Tools // Process Editor // Global List // Open Global List from Server]. Si no estábamos conectados a un TP, pues en este momento tendremos que conectarnos.

2. En el formulario de edición, desplegar el menú contextual y seleccionar la opción [New Global List]

image

 

3. Utilizando las opciones del editor, en este caso he creado una lista nueva llamada [ExtendedBoolean] con los siguientes valores:

image

 

4. Una vez terminada de editar la lista, presionar [OK]. Esta acción guarda los cambios en la definición global de elementos del servidor de TFS2010.

5. Ahora toca editar la definición de un Bug, para esto seleccionamos la opción [Tools // Process Editor // Work Item Types // Open WIT from Server].

6. Seleccionamos el Team Project correspondiente y luego el tipo de WorkItem que queremos modificar.

image

 

7. En el formulario de edición del WorkItem Type, en la pestaña [Fields] creamos un nuevo campo llamado [ExtendedBoolean], de tipo String, con los siguientes valores.

image

 

8. Seleccionamos la pestaña [Rules] y agregamos una nueva regla del tipo [ALLOWEDVALUES]

image

 

9. Esto abrirá el formulario de edición de los valores que soportará el WorkItem Field. En este caso, presionamos [New] y seleccionamos la lista global que hemos creado en los pasos anteriores.

image

 

10. Agregamos el nuevo campo, a la interfaz visual de edición del WorkItem (lo he explicado en detalle en este post) y ya podremos ver el combo con los valores de la lista global.

image

 

11. Si necesitamos modificar estos valores, en lugar de modificar la definición del WorkItem, simplemente modificamos la lista global.

 

Saludos @ Home

El Bruno

   

5 comentarios

Seguir

Get every new post delivered to your Inbox.

Únete a otros 898 seguidores