how can I change my process template?

Traitée how can I change my process template?

  • mercredi 29 mars 2006 03:02
     
     

          now, I want  to select  the  MSF for Agile Software Development  as my  process template,  but  It   only  have  five   workitems,   I  want to  add  a  Requirement   workitem,   how  can  I   do ?   expect  your  help!

         another    question:

          first  I   download     the   MSF for Agile Software Development   process  template,    I   do  nothing   to  it  ,then  I    upload   it   directly,   but  error   arises,  it   said:"can't    upload   the   process  template,   please    see  the  error  log"    why   not?

        

Toutes les réponses

  • mercredi 29 mars 2006 15:57
     
     
    What did the error log say?
  • mercredi 29 mars 2006 19:43
     
     

    Check out the documentation here on customizing process templates: http://msdn2.microsoft.com/en-us/library/ms195025(VS.80).aspx

    You'd have to create a new work item type definition file (work off of an existing one) and add necessary details to the workitems.xml.

    You can use a UI tool such as Process template editor http://www.imaginets.com/Default.aspx?tabid=133 if editing the xml file directly is confusing.

    Did you change the name of the process template (in processtemplate.xml) before re-uploading it? If not, maybe that conflict caused the upload to fail.

    Good luck!

  • lundi 3 avril 2006 08:14
     
     

            I  study the article in msdn, but I still can't change my process template successfully, why? expect your help!

            I  operate as follows:

           first,  I  download  the  MSF for Agile Software Development  process template  in process template editor to my  document. 

           second,  I  changed the name of the process template to ''my  process  template'' as  follow   in  ProcessTemplate.xml   in  the  MSF for Agile Software Development  folder 

                <ProcessTemplate>
                               <metadata>
                               <name>my  process  template</name>    

            third,  I  add a   Requirement   workitemtype  in  the  workitems.xml   in  WorkItem Tracking  folder  like this :

           <WORKITEMTYPE fileName="WorkItem Tracking\TypeDefinitions\Bug.xml"/>
            <WORKITEMTYPE fileName="WorkItem Tracking\TypeDefinitions\Task.xml"/>
            <WORKITEMTYPE fileName="WorkItem Tracking\TypeDefinitions\Qos.xml"/>
            <WORKITEMTYPE fileName="WorkItem Tracking\TypeDefinitions\Scenario.xml"/>
            <WORKITEMTYPE fileName="WorkItem Tracking\TypeDefinitions\Risk.xml"/>
            <WORKITEMTYPE fileName="WorkItem Tracking\TypeDefinitions\Requirement.XML"/>

            then,   I  cope  the  QoS.XML   and   save as Requirement.XML  in TypeDefinitions  folder

         please  see the  next   one

  • lundi 3 avril 2006 08:49
     
     Traitée

          in  Requirement.XML  ,  I  replaced  all   the   "服务质量要求"  in  chinese  into "需求"  and  changed  only one  field  into

    <FIELD name="需求类型" refname="Microsoft.VSTS.Common.RequirementType" type="String" reportable="dimension">
        <HELPTEXT>需求的类型</HELPTEXT>
        <REQUIRED/>
        <ALLOWEDVALUES>
         <LISTITEM value="关键需求"/>
         <LISTITEM value="一般需求"/>
         <LISTITEM value="增值需求"/>
        </ALLOWEDVALUES>
    </FIELD>

    and  

    <Layout>
        <Group>
         <Column PercentWidth="70">
          <Control Type="FieldControl" FieldName="System.Title" Label="标题(&amp;T):" LabelPosition="Left"/>
         </Column>
         <Column PercentWidth="30">
          <Control Type="FieldControl" FieldName="Microsoft.VSTS.Common.RequirementType" Label="类型(&amp;Y):" LabelPosition="Left"/>
         </Column>
        </Group>

           but,  the refname="Microsoft.VSTS.Common.RequirementType"   does't  exist,   so  I    add  a   field  in  FileMapping.xml in Classification  folder  like  this :

           <Mapping WorkItemTrackingFieldReferenceName="Microsoft.VSTS.Common.RequirementType" ProjectField="pjTaskText22"/>

            fourth, in  the  process template editor ,  I   click  the  "upload"  button,  then  select  the  MSF for Agile Software Development   folder  that   I   have  already   changed ,   After   running  for  two  minutes ,   the   process   template   upload  successfully,   oh,  my  god,   I  succeed   at  last!

            Thanks   very much!

            In the  process  of   my   writing   this   reply,    I    succeed.    but    why   I    say  I   failed   in  the  previous   article,   that  is   because   I   forget   to   change   the   part

    <Layout>
        <Group>
         <Column PercentWidth="70">
          <Control Type="FieldControl" FieldName="System.Title" Label="标题(&amp;T):" LabelPosition="Left"/>
         </Column>
         <Column PercentWidth="30">
          <Control Type="FieldControl" FieldName="Microsoft.VSTS.Common.RequirementType" Label="类型(&amp;Y):" LabelPosition="Left"/>
         </Column>
        </Group>

    Thanks   a  lot!    this   question   is    resolved.      

  • vendredi 7 avril 2006 22:48
    Modérateur
     
     

    After uploading the template fails, please check the log - what error does it report?

    Most likely you're seeing an error saying that existing fields cannot be renamed. Both friendly names and reference names are global to the TF server - this is current design limitation. Therefore if any field in your XML already exists and has a different name from one defined in the XML, uploading the methodology will fail.

    Thanks,

    Alex