Skip to content

Commit

Permalink
PR 42: Added a number of demo configurations
Browse files Browse the repository at this point in the history
 - Added a number of demo configurations
  • Loading branch information
MrHinsh committed Aug 16, 2016
1 parent 20b91f2 commit d0b7adc
Show file tree
Hide file tree
Showing 4 changed files with 165 additions and 0 deletions.
7 changes: 7 additions & 0 deletions VSTS.DataBulkEditor.sln
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,13 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "SolutionFiles", "SolutionFi
README.md = README.md
EndProjectSection
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "configurations", "configurations", "{89434800-3004-4621-8677-C14C1D1AA4AF}"
ProjectSection(SolutionItems) = preProject
configurations\demo-mapping-scrum2Agile.json = configurations\demo-mapping-scrum2Agile.json
configurations\demo-migration-reset.json = configurations\demo-migration-reset.json
configurations\demo-migration.json = configurations\demo-migration.json
EndProjectSection
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Expand Down
65 changes: 65 additions & 0 deletions configurations/demo-mapping-scrum2Agile.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
{
"TelemetryEnableTrace": true,
"Target": {
"Collection": "https://tfs.test.company.com/tfs/col2/",
"Name": "ProjectName"
},
"ReflectedWorkItemIDFieldName": "TfsMigrationTool.ReflectedWorkItemId",
"WorkItemTypeDefinition": {
"Bug": "Bug",
"User Story": "User Story",
"Requirement": "Requirement",
"Task": "Task",
"Test Case": "Test Case",
"Shared Steps": "Shared Steps",
"Shared Parameter": "Shared Parameter"
},
"FieldMaps": [
{
"ObjectType": "VSTS.DataBulkEditor.Engine.Configuration.FieldMap.FieldtoTagMapConfig",
"WorkItemTypeName": "*",
"sourceField": "System.State",
"formatExpression": "OriginalState:{0}"
},
{
"ObjectType": "VSTS.DataBulkEditor.Engine.Configuration.FieldMap.FieldValueMapConfig",
"WorkItemTypeName": "*",
"sourceField": "System.State",
"targetField": "System.State",
"valueMapping": {
"Approved": "New",
"New": "New",
"Committed": "Active",
"In Progress": "Active",
"To Do": "New",
"Done": "Closed"
}
},
{
"ObjectType": "VSTS.DataBulkEditor.Engine.Configuration.FieldMap.FieldtoTagMapConfig",
"WorkItemTypeName": "*",
"sourceField": "Microsoft.VSTS.Common.BusinessValue",
"formatExpression": "BV:{0}"
},
{
"ObjectType": "VSTS.DataBulkEditor.Engine.Configuration.FieldMap.FieldtoFieldMapConfig",
"WorkItemTypeName": "*",
"sourceField": "Microsoft.VSTS.Common.BacklogPriority",
"targetField": "Microsoft.VSTS.Common.StackRank"
},
{
"ObjectType": "VSTS.DataBulkEditor.Engine.Configuration.FieldMap.FieldtoFieldMapConfig",
"WorkItemTypeName": "*",
"sourceField": "Microsoft.VSTS.Scheduling.Effort",
"targetField": "Microsoft.VSTS.Scheduling.StoryPoints"
}
],
"Processors": [
{
"ObjectType": "VSTS.DataBulkEditor.Engine.Configuration.Processing.WorkItemUpdateConfig",
"WhatIf": false,
"Disabled": false,
"QueryBit": "AND [TfsMigrationTool.ReflectedWorkItemId] = '' AND [Microsoft.VSTS.Common.ClosedDate] = '' AND [System.WorkItemType] IN ('Shared Steps', 'Shared Parameter', 'Test Case', 'Requirement', 'Task', 'User Story', 'Bug')"
}
]
}
32 changes: 32 additions & 0 deletions configurations/demo-migration-reset.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
{
"TelemetryEnableTrace": true,
"Target": {
"Collection": "https://tfs.test.company.com/tfs/Coll2/",
"Name": "ProjectName"
},
"ReflectedWorkItemIDFieldName": "TfsMigrationTool.ReflectedWorkItemId",
"WorkItemTypeDefinition": {
"Bug": "Bug",
"User Story": "User Story",
"Requirement": "Requirement",
"Task": "Task",
"Test Case": "Test Case",
"Shared Steps": "Shared Steps",
"Shared Parameter": "Shared Parameter"
},
"FieldMaps": [
{
"ObjectType": "VSTS.DataBulkEditor.Engine.Configuration.FieldMap.FieldBlankMapConfig",
"WorkItemTypeName": "*",
"targetField": "TfsMigrationTool.ReflectedWorkItemId"
}
],
"Processors": [
{
"ObjectType": "VSTS.DataBulkEditor.Engine.Configuration.Processing.WorkItemUpdateConfig",
"WhatIf": false,
"Enabled": true,
"QueryBit": "AND [TfsMigrationTool.ReflectedWorkItemId] <> '' AND [System.WorkItemType] IN ('Shared Steps', 'Shared Parameter', 'Test Case', 'Requirement', 'Task', 'User Story', 'Bug')"
}
]
}
61 changes: 61 additions & 0 deletions configurations/demo-migration.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
{
"TelemetryEnableTrace": true,
"Source": {
"Collection": "https://tfs.test.company.com/tfs/coll2/",
"Name": "ProjectName"
},
"Target": {
"Collection": "https://tfs.test.company.com/tfs/coll1/",
"Name": "ProjectName_New"
},
"ReflectedWorkItemIDFieldName": "TfsMigrationTool.ReflectedWorkItemId",
"WorkItemTypeDefinition": {
"Bug": "Bug",
"User Story": "User Story",
"Requirement": "Requirement",
"Task": "Task",
"Test Case": "Test Case",
"Shared Steps": "Shared Steps",
"Shared Parameter": "Shared Parameter"
},
"Processors": [
{
"ObjectType": "VSTS.DataBulkEditor.Engine.Configuration.Processing.TeamMigrationConfig",
"Enabled": true
},
{
"ObjectType": "VSTS.DataBulkEditor.Engine.Configuration.Processing.NodeStructuresMigrationConfig",
"Enabled": false
},
{
"ObjectType": "VSTS.DataBulkEditor.Engine.Configuration.Processing.WorkItemMigrationConfig",
"Enabled": false,
"QueryBit": "AND [TfsMigrationTool.ReflectedWorkItemId] = '' AND [Microsoft.VSTS.Common.ClosedDate] = '' AND [System.WorkItemType] IN ('Shared Steps', 'Shared Parameter', 'Test Case', 'Requirement', 'Task', 'User Story', 'Bug')"
},
{
"ObjectType": "VSTS.DataBulkEditor.Engine.Configuration.Processing.LinkMigrationConfig",
"Enabled": false
},
{
"ObjectType": "VSTS.DataBulkEditor.Engine.Configuration.Processing.AttachementExportMigrationConfig",
"Enabled": false,
"QueryBit": "AND [System.AttachedFileCount] > 0"
},
{
"ObjectType": "VSTS.DataBulkEditor.Engine.Configuration.Processing.AttachementImportMigrationConfig",
"Enabled": false
},
{
"ObjectType": "VSTS.DataBulkEditor.Engine.Configuration.Processing.TestVeriablesMigrationConfig",
"Enabled": false
},
{
"ObjectType": "VSTS.DataBulkEditor.Engine.Configuration.Processing.TestConfigurationsMigrationConfig",
"Enabled": false
},
{
"ObjectType": "VSTS.DataBulkEditor.Engine.Configuration.Processing.TestPlansAndSuitsMigrationConfig",
"Enabled": false
}
]
}

2 comments on commit d0b7adc

@johndpalm
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't line 10 of demo-mapping-scrum2Agile.json be?:

"Product Backlog Item": "User Story",

@MrHinsh
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JohnPalm, not for the "migration" demo. I usually do an in-place move from one process template to another, and then migrate to another server with identical templates.

I find this reduced most of the risk.

Please sign in to comment.