понедельник, 21 ноября 2011 г.

Переименование русских полей на TFS в английские

Тем, кто устанавливал русскую версию TFS, могут возникнуть проблемы, когда они создают проект на основе английского шаблона проекта. Поэтому рекомендую переименовать поля на английский вариант и использовать английский шаблон проекта.

Я написал небольшой батник, который изменить на TF-сервере названия всех полей с русского варианта на английский.


changefield.bat  >>>

rem Server Name
SET srv=ServerTFS


rem Collection Name
SET Collection=TeamCollection


witadmin changefield /collection:http://%srv%:8080/tfs/%Collection% /n:Microsoft.VSTS.Build.FoundIn             /name:"Found In" /noprompt
witadmin changefield /collection:http://%srv%:8080/tfs/%Collection% /n:Microsoft.VSTS.Build.IntegrationBuild    /name:"Integration Build" /noprompt
witadmin changefield /collection:http://%srv%:8080/tfs/%Collection% /n:Microsoft.VSTS.CMMI.ActualAttendee1      /name:"Actual Attendee 1" /noprompt
witadmin changefield /collection:http://%srv%:8080/tfs/%Collection% /n:Microsoft.VSTS.CMMI.ActualAttendee2      /name:"Actual Attendee 2" /noprompt
witadmin changefield /collection:http://%srv%:8080/tfs/%Collection% /n:Microsoft.VSTS.CMMI.ActualAttendee3      /name:"Actual Attendee 3" /noprompt
witadmin changefield /collection:http://%srv%:8080/tfs/%Collection% /n:Microsoft.VSTS.CMMI.ActualAttendee4      /name:"Actual Attendee 4" /noprompt
witadmin changefield /collection:http://%srv%:8080/tfs/%Collection% /n:Microsoft.VSTS.CMMI.ActualAttendee5      /name:"Actual Attendee 5" /noprompt
witadmin changefield /collection:http://%srv%:8080/tfs/%Collection% /n:Microsoft.VSTS.CMMI.ActualAttendee6      /name:"Actual Attendee 6" /noprompt
witadmin changefield /collection:http://%srv%:8080/tfs/%Collection% /n:Microsoft.VSTS.CMMI.ActualAttendee7      /name:"Actual Attendee 7" /noprompt
witadmin changefield /collection:http://%srv%:8080/tfs/%Collection% /n:Microsoft.VSTS.CMMI.ActualAttendee8      /name:"Actual Attendee 8" /noprompt
witadmin changefield /collection:http://%srv%:8080/tfs/%Collection% /n:Microsoft.VSTS.CMMI.Analysis /name:"Analysis" /noprompt
witadmin changefield /collection:http://%srv%:8080/tfs/%Collection% /n:Microsoft.VSTS.CMMI.Blocked              /name:"Blocked"  /noprompt
witadmin changefield /collection:http://%srv%:8080/tfs/%Collection% /n:Microsoft.VSTS.CMMI.CalledBy             /name:"Called By" /noprompt
witadmin changefield /collection:http://%srv%:8080/tfs/%Collection% /n:Microsoft.VSTS.CMMI.CalledDate           /name:"Called Date" /noprompt
witadmin changefield /collection:http://%srv%:8080/tfs/%Collection% /n:Microsoft.VSTS.CMMI.Comments             /name:"Comments" /noprompt
witadmin changefield /collection:http://%srv%:8080/tfs/%Collection% /n:Microsoft.VSTS.CMMI.Committed            /name:"Commited" /noprompt
witadmin changefield /collection:http://%srv%:8080/tfs/%Collection% /n:Microsoft.VSTS.CMMI.ContingencyPlan      /name:"Contingency Plan" /noprompt
witadmin changefield /collection:http://%srv%:8080/tfs/%Collection% /n:Microsoft.VSTS.CMMI.CorrectiveActionActualResolution /name:"Corrective Action Actual Resolution" /noprompt
witadmin changefield /collection:http://%srv%:8080/tfs/%Collection% /n:Microsoft.VSTS.CMMI.CorrectiveActionPlan /name:"Corrective Action Plan" /noprompt
witadmin changefield /collection:http://%srv%:8080/tfs/%Collection% /n:Microsoft.VSTS.CMMI.Escalate             /name:"Escalate" /noprompt
witadmin changefield /collection:http://%srv%:8080/tfs/%Collection% /n:Microsoft.VSTS.CMMI.FoundInEnvironment   /name:"Found In Environment" /noprompt
witadmin changefield /collection:http://%srv%:8080/tfs/%Collection% /n:Microsoft.VSTS.CMMI.HowFound             /name:"How Found" /noprompt
witadmin changefield /collection:http://%srv%:8080/tfs/%Collection% /n:Microsoft.VSTS.CMMI.ImpactAssessmentHtml /name:"Impact Assessment HTML"    /noprompt
witadmin changefield /collection:http://%srv%:8080/tfs/%Collection% /n:Microsoft.VSTS.CMMI.ImpactOnArchitecture /name:"Impact on Architecture" /noprompt
witadmin changefield /collection:http://%srv%:8080/tfs/%Collection% /n:Microsoft.VSTS.CMMI.ImpactOnDevelopment  /name:"Impact on Development" /noprompt
witadmin changefield /collection:http://%srv%:8080/tfs/%Collection% /n:Microsoft.VSTS.CMMI.ImpactOnTechnicalPublications /name:"Impact on Technical Publications" /noprompt
witadmin changefield /collection:http://%srv%:8080/tfs/%Collection% /n:Microsoft.VSTS.CMMI.ImpactOnTest         /name:"Impact on Test" /noprompt
witadmin changefield /collection:http://%srv%:8080/tfs/%Collection% /n:Microsoft.VSTS.CMMI.ImpactOnUserExperience /name:"Impact on User Experience" /noprompt
witadmin changefield /collection:http://%srv%:8080/tfs/%Collection% /n:Microsoft.VSTS.CMMI.Justification        /name:"Justification" /noprompt
witadmin changefield /collection:http://%srv%:8080/tfs/%Collection% /n:Microsoft.VSTS.CMMI.MeetingType          /name:"Meeting Type"       /noprompt
witadmin changefield /collection:http://%srv%:8080/tfs/%Collection% /n:Microsoft.VSTS.CMMI.Minutes              /name:"Minutes"                 /noprompt
witadmin changefield /collection:http://%srv%:8080/tfs/%Collection% /n:Microsoft.VSTS.CMMI.MitigationPlan       /name:"Mitigation Plan" /noprompt
witadmin changefield /collection:http://%srv%:8080/tfs/%Collection% /n:Microsoft.VSTS.CMMI.MitigationTriggers   /name:"Mitigation Triggers" /noprompt
witadmin changefield /collection:http://%srv%:8080/tfs/%Collection% /n:Microsoft.VSTS.CMMI.OptionalAttendee1    /name:"Optional Attendee 1" /noprompt
witadmin changefield /collection:http://%srv%:8080/tfs/%Collection% /n:Microsoft.VSTS.CMMI.OptionalAttendee2    /name:"Optional Attendee 2" /noprompt
witadmin changefield /collection:http://%srv%:8080/tfs/%Collection% /n:Microsoft.VSTS.CMMI.OptionalAttendee3    /name:"Optional Attendee 3" /noprompt
witadmin changefield /collection:http://%srv%:8080/tfs/%Collection% /n:Microsoft.VSTS.CMMI.OptionalAttendee4    /name:"Optional Attendee 4" /noprompt
witadmin changefield /collection:http://%srv%:8080/tfs/%Collection% /n:Microsoft.VSTS.CMMI.OptionalAttendee5    /name:"Optional Attendee 5" /noprompt
witadmin changefield /collection:http://%srv%:8080/tfs/%Collection% /n:Microsoft.VSTS.CMMI.OptionalAttendee6    /name:"Optional Attendee 6" /noprompt
witadmin changefield /collection:http://%srv%:8080/tfs/%Collection% /n:Microsoft.VSTS.CMMI.OptionalAttendee7    /name:"Optional Attendee 7" /noprompt
witadmin changefield /collection:http://%srv%:8080/tfs/%Collection% /n:Microsoft.VSTS.CMMI.OptionalAttendee8    /name:"Optional Attendee 8" /noprompt
witadmin changefield /collection:http://%srv%:8080/tfs/%Collection% /n:Microsoft.VSTS.CMMI.Probability          /name:"Probability" /noprompt
witadmin changefield /collection:http://%srv%:8080/tfs/%Collection% /n:Microsoft.VSTS.CMMI.ProposedFix          /name:"Proposed Fix" /noprompt
witadmin changefield /collection:http://%srv%:8080/tfs/%Collection% /n:Microsoft.VSTS.CMMI.Purpose              /name:"Purpose" /noprompt
witadmin changefield /collection:http://%srv%:8080/tfs/%Collection% /n:Microsoft.VSTS.CMMI.RequiredAttendee1    /name:"Required Attendee 1" /noprompt
witadmin changefield /collection:http://%srv%:8080/tfs/%Collection% /n:Microsoft.VSTS.CMMI.RequiredAttendee2    /name:"Required Attendee 2" /noprompt
witadmin changefield /collection:http://%srv%:8080/tfs/%Collection% /n:Microsoft.VSTS.CMMI.RequiredAttendee3    /name:"Required Attendee 3"      /noprompt
witadmin changefield /collection:http://%srv%:8080/tfs/%Collection% /n:Microsoft.VSTS.CMMI.RequiredAttendee4 /name:"Required Attendee 4"           /noprompt
witadmin changefield /collection:http://%srv%:8080/tfs/%Collection% /n:Microsoft.VSTS.CMMI.RequiredAttendee5 /name:"Required Attendee 5" /noprompt
witadmin changefield /collection:http://%srv%:8080/tfs/%Collection% /n:Microsoft.VSTS.CMMI.RequiredAttendee6 /name:"Required Attendee 6" /noprompt
witadmin changefield /collection:http://%srv%:8080/tfs/%Collection% /n:Microsoft.VSTS.CMMI.RequiredAttendee7 /name:"Required Attendee 7" /noprompt
witadmin changefield /collection:http://%srv%:8080/tfs/%Collection% /n:Microsoft.VSTS.CMMI.RequiredAttendee8 /name:"Required Attendee 8" /noprompt
witadmin changefield /collection:http://%srv%:8080/tfs/%Collection% /n:Microsoft.VSTS.CMMI.RequirementType      /name:"Requirement Type" /noprompt
witadmin changefield /collection:http://%srv%:8080/tfs/%Collection% /n:Microsoft.VSTS.CMMI.RequiresReview       /name:"Requires Review" /noprompt
witadmin changefield /collection:http://%srv%:8080/tfs/%Collection% /n:Microsoft.VSTS.CMMI.RequiresTest         /name:"Requires Test"        /noprompt
witadmin changefield /collection:http://%srv%:8080/tfs/%Collection% /n:Microsoft.VSTS.CMMI.RootCause            /name:"Root Cause" /noprompt
witadmin changefield /collection:http://%srv%:8080/tfs/%Collection% /n:Microsoft.VSTS.CMMI.SubjectMatterExpert1 /name:"Subject Matter Expert 1" /noprompt
witadmin changefield /collection:http://%srv%:8080/tfs/%Collection% /n:Microsoft.VSTS.CMMI.SubjectMatterExpert2 /name:"Subject Matter Expert 2" /noprompt
witadmin changefield /collection:http://%srv%:8080/tfs/%Collection% /n:Microsoft.VSTS.CMMI.SubjectMatterExpert3 /name:"Subject Matter Expert 3" /noprompt
witadmin changefield /collection:http://%srv%:8080/tfs/%Collection% /n:Microsoft.VSTS.CMMI.Symptom              /name:"Symptom" /noprompt
witadmin changefield /collection:http://%srv%:8080/tfs/%Collection% /n:Microsoft.VSTS.CMMI.TargetResolveDate    /name:"Target Resolve Date" /noprompt
witadmin changefield /collection:http://%srv%:8080/tfs/%Collection% /n:Microsoft.VSTS.CMMI.TaskType             /name:"Task Type" /noprompt
witadmin changefield /collection:http://%srv%:8080/tfs/%Collection% /n:Microsoft.VSTS.CMMI.UserAcceptanceTest   /name:"User Acceptance Test" /noprompt
witadmin changefield /collection:http://%srv%:8080/tfs/%Collection% /n:Microsoft.VSTS.Common.ActivatedBy        /name:"Activated By" /noprompt
witadmin changefield /collection:http://%srv%:8080/tfs/%Collection% /n:Microsoft.VSTS.Common.ActivatedDate      /name:"Activated Date"    /noprompt
witadmin changefield /collection:http://%srv%:8080/tfs/%Collection% /n:Microsoft.VSTS.Common.ClosedBy           /name:"Closed By" /noprompt
witadmin changefield /collection:http://%srv%:8080/tfs/%Collection% /n:Microsoft.VSTS.Common.ClosedDate         /name:"Closed Date" /noprompt
witadmin changefield /collection:http://%srv%:8080/tfs/%Collection% /n:Microsoft.VSTS.Common.Discipline         /name:"Discipline" /noprompt
witadmin changefield /collection:http://%srv%:8080/tfs/%Collection% /n:Microsoft.VSTS.Common.Issue              /name:"Issue" /noprompt
witadmin changefield /collection:http://%srv%:8080/tfs/%Collection% /n:Microsoft.VSTS.Common.Priority           /name:"Priority" /noprompt
witadmin changefield /collection:http://%srv%:8080/tfs/%Collection% /n:Microsoft.VSTS.Common.ResolvedBy         /name:"Resolved By" /noprompt
witadmin changefield /collection:http://%srv%:8080/tfs/%Collection% /n:Microsoft.VSTS.Common.ResolvedDate       /name:"Resolved Date" /noprompt
witadmin changefield /collection:http://%srv%:8080/tfs/%Collection% /n:Microsoft.VSTS.Common.ResolvedReason     /name:"Resolved Reason" /noprompt
witadmin changefield /collection:http://%srv%:8080/tfs/%Collection% /n:Microsoft.VSTS.Common.Severity           /name:"Severity"        /noprompt
witadmin changefield /collection:http://%srv%:8080/tfs/%Collection% /n:Microsoft.VSTS.Common.StackRank          /name:"Stack Rank"           /noprompt
witadmin changefield /collection:http://%srv%:8080/tfs/%Collection% /n:Microsoft.VSTS.Common.StateChangeDate    /name:"State Change Date"         /noprompt
witadmin changefield /collection:http://%srv%:8080/tfs/%Collection% /n:Microsoft.VSTS.Common.Triage             /name:"Triage" /noprompt
witadmin changefield /collection:http://%srv%:8080/tfs/%Collection% /n:Microsoft.VSTS.Scheduling.CompletedWork  /name:"Completed Work" /noprompt
witadmin changefield /collection:http://%srv%:8080/tfs/%Collection% /n:Microsoft.VSTS.Scheduling.FinishDate     /name:"FinishDate" /noprompt
witadmin changefield /collection:http://%srv%:8080/tfs/%Collection% /n:Microsoft.VSTS.Scheduling.OriginalEstimate /name:"Original Estimate" /noprompt
witadmin changefield /collection:http://%srv%:8080/tfs/%Collection% /n:Microsoft.VSTS.Scheduling.RemainingWork  /name:"Remaining Work" /noprompt
witadmin changefield /collection:http://%srv%:8080/tfs/%Collection% /n:Microsoft.VSTS.Scheduling.StartDate      /name:"Start Date" /noprompt
witadmin changefield /collection:http://%srv%:8080/tfs/%Collection% /n:Microsoft.VSTS.TCM.AutomatedTestId       /name:"Automated Test Id" /noprompt
witadmin changefield /collection:http://%srv%:8080/tfs/%Collection% /n:Microsoft.VSTS.TCM.AutomatedTestName     /name:"Automated Test Name" /noprompt
witadmin changefield /collection:http://%srv%:8080/tfs/%Collection% /n:Microsoft.VSTS.TCM.AutomatedTestStorage  /name:"Automated Test Storage" /noprompt
witadmin changefield /collection:http://%srv%:8080/tfs/%Collection% /n:Microsoft.VSTS.TCM.AutomatedTestType     /name:"Automated Test Type" /noprompt
witadmin changefield /collection:http://%srv%:8080/tfs/%Collection% /n:Microsoft.VSTS.TCM.AutomationStatus      /name:"Automation status" /noprompt
witadmin changefield /collection:http://%srv%:8080/tfs/%Collection% /n:Microsoft.VSTS.TCM.LocalDataSource       /name:"Local Data Source" /noprompt
witadmin changefield /collection:http://%srv%:8080/tfs/%Collection% /n:Microsoft.VSTS.TCM.Parameters            /name:"Parameters" /noprompt
witadmin changefield /collection:http://%srv%:8080/tfs/%Collection% /n:Microsoft.VSTS.TCM.ReproSteps            /name:"Repro Steps" /noprompt
witadmin changefield /collection:http://%srv%:8080/tfs/%Collection% /n:Microsoft.VSTS.TCM.Steps                 /name:"Steps" /noprompt
witadmin changefield /collection:http://%srv%:8080/tfs/%Collection% /n:Microsoft.VSTS.TCM.SystemInfo            /name:"System Info" /noprompt
witadmin changefield /collection:http://%srv%:8080/tfs/%Collection% /n:System.AreaId                            /name:"Area ID" /noprompt
witadmin changefield /collection:http://%srv%:8080/tfs/%Collection% /n:System.AreaPath                          /name:"Area Path"    /noprompt
witadmin changefield /collection:http://%srv%:8080/tfs/%Collection% /n:System.AssignedTo                        /name:"Assigned To"       /noprompt
witadmin changefield /collection:http://%srv%:8080/tfs/%Collection% /n:System.AttachedFileCount                 /name:"Attached File Count" /noprompt
witadmin changefield /collection:http://%srv%:8080/tfs/%Collection% /n:System.AuthorizedAs                      /name:"Authorized As" /noprompt
witadmin changefield /collection:http://%srv%:8080/tfs/%Collection% /n:System.ChangedBy                         /name:"Changed By" /noprompt
witadmin changefield /collection:http://%srv%:8080/tfs/%Collection% /n:System.ChangedDate                       /name:"Changed Date" /noprompt
witadmin changefield /collection:http://%srv%:8080/tfs/%Collection% /n:System.CreatedBy                         /name:"Created By" /noprompt
witadmin changefield /collection:http://%srv%:8080/tfs/%Collection% /n:System.CreatedDate                       /name:"Created Date" /noprompt
witadmin changefield /collection:http://%srv%:8080/tfs/%Collection% /n:System.Description                       /name:"Description" /noprompt
witadmin changefield /collection:http://%srv%:8080/tfs/%Collection% /n:System.ExternalLinkCount                 /name:"External Link Count" /noprompt
witadmin changefield /collection:http://%srv%:8080/tfs/%Collection% /n:System.History                           /name:"History" /noprompt
witadmin changefield /collection:http://%srv%:8080/tfs/%Collection% /n:System.HyperLinkCount                    /name:"Hyperlink Count" /noprompt
witadmin changefield /collection:http://%srv%:8080/tfs/%Collection% /n:System.Id                                /name:"ID" /noprompt
witadmin changefield /collection:http://%srv%:8080/tfs/%Collection% /n:System.IterationId                       /name:"Iteration ID" /noprompt
witadmin changefield /collection:http://%srv%:8080/tfs/%Collection% /n:System.IterationPath                     /name:"Iteration Path" /noprompt
witadmin changefield /collection:http://%srv%:8080/tfs/%Collection% /n:System.Links.LinkType                    /name:"Link Type" /noprompt
witadmin changefield /collection:http://%srv%:8080/tfs/%Collection% /n:System.NodeName                          /name:"Node Name" /noprompt
witadmin changefield /collection:http://%srv%:8080/tfs/%Collection% /n:System.Reason                            /name:"Reason" /noprompt
witadmin changefield /collection:http://%srv%:8080/tfs/%Collection% /n:System.RelatedLinkCount                  /name:"Related Link Count" /noprompt
witadmin changefield /collection:http://%srv%:8080/tfs/%Collection% /n:System.Rev                               /name:"Rev" /noprompt
witadmin changefield /collection:http://%srv%:8080/tfs/%Collection% /n:System.RevisedDate                       /name:"Revised Date" /noprompt
witadmin changefield /collection:http://%srv%:8080/tfs/%Collection% /n:System.State                             /name:"State" /noprompt
witadmin changefield /collection:http://%srv%:8080/tfs/%Collection% /n:System.TeamProject                       /name:"Team Project" /noprompt
witadmin changefield /collection:http://%srv%:8080/tfs/%Collection% /n:System.Title                             /name:"Title" /noprompt
witadmin changefield /collection:http://%srv%:8080/tfs/%Collection% /n:System.WorkItemType                      /name:"Work Item Type" /noprompt 


Комментариев нет:

Отправить комментарий