Skip to content

Instantly share code, notes, and snippets.

@camous
Last active March 2, 2019 20:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save camous/5967352f288deeb0631cb62f43c0e5ba to your computer and use it in GitHub Desktop.
Save camous/5967352f288deeb0631cb62f43c0e5ba to your computer and use it in GitHub Desktop.
ACME redmine to devops acmemapper definition
{
"issue": [
{
"redmine": "Subject",
"vsts": "/fields/System.Title"
},
{
"redmine": "Author",
"vsts": {
"property": "/fields/System.CreatedBy",
"fromsubproperty": "Id",
"tosubproperty": "id",
"addproperties": {
"type" : "User",
"primary" : true
}
}
},
{
"redmine": "AssignedTo",
"vsts": {
"property": "/fields/System.AssignedTo",
"fromsubproperty": "Id",
"tosubproperty": "id",
"ignoreIfNull" : true,
"addproperties": {
"type": "User"
}
}
},
{
"redmine": "Tracker",
"vsts": {
"property": "Type",
"fromsubproperty": "Name",
"map": {
"Proposal": "Task",
"Support": "Task",
"Decision": "Task",
"Feature" : "Feature",
"Bug" : "Bug"
}
}
},
{
"redmine": "Priority",
"vsts": {
"property": "/fields/Microsoft.VSTS.Common.Priority",
"fromsubproperty": "Name",
"map": {
"Low": 4,
"Normal": 3,
"High": 3,
"Urgent": 2,
"Immediate": 1
}
}
},
{
"redmine": "StartDate",
"vsts": {
"property": "/fields/Microsoft.VSTS.Scheduling.StartDate",
"ignoreIfNull" : true
}
},
{
"redmine": "DueDate",
"vsts": {
"property": "/fields/Microsoft.VSTS.Scheduling.DueDate",
"ignoreIfNull": true
}
},
{
"redmine": "ClosedOn",
"vsts": {
"property": "/fields/Microsoft.VSTS.Common.ClosedDate",
"ignoreIfNull": true
}
},
{
"redmine": "CreatedOn",
"vsts": "/fields/System.CreatedDate"
},
{
"redmine": "UpdatedOn",
"vsts": "/fields/System.ChangedDate"
},
{
"redmine": "Status",
"vsts": {
"property": "/fields/System.State",
"fromsubproperty": "Name",
"map": {
"In Progress": "Active",
"Feedback": "Active",
"Approved": "Active",
"Tested": "Active",
"Rejected": "Closed"
}
}
},
{
"redmine": "Description",
"vsts": "/fields/System.Description"
},
{
"redmine": "EstimatedHours",
"vsts": {
"property": "/fields/Microsoft.VSTS.Scheduling.OriginalEstimate",
"ignoreIfNull": true
}
},
{
"redmine": "SpentHours",
"vsts": {
"property": "/fields/Microsoft.VSTS.Scheduling.CompletedWork",
"ignoreIfNull": true
}
},
{
"redmine": "FixedVersion",
"vsts": {
"property": "/fields/System.IterationPath",
"fromsubproperty": "Name",
"ignoreIfNull": true,
"map": {
"Acme design & architecture": "ACME Core",
"ACME 4.0 Anvils / Solution BlueSales": "ACME 4.0 Anvils BlueSales",
"ACME 10.0 CMDB Bird Seed": "ACME 10.0 Bird Seed CMDB",
"BOSS Interface": "ACME 4.0 Anvils BlueSales",
"Blue Sales": "ACME 4.0 Anvils BlueSales",
"ACME Technical Debt": null
},
"patternValue": "Acme\\{value}"
}
},
{
"redmine": "Category",
"vsts": {
"property": "/fields/System.AreaPath",
"fromsubproperty": "Name",
"ignoreIfNull": true,
"map": {
"$default": "unknown",
"PMO": "org-pmo",
"VSTS": "infra-vsts",
"acme-aspirin": "tool-aspirin",
"acme-beans": "client-beans",
"acme-cecil": "client-cecil",
"acme-cortex": "client-cortex",
"acme-coyote": "client-coyote",
"acme-elmer": "client-elmer",
"acme-hugo": "client-hugo",
"acme-lib-common": "lib-common",
"acme-mapper": "lib-mapper",
"acme-saperp": "client-tweety",
"acme-slowpoke": "client-slowpoke",
"acme-sylvester": "client-sylvester",
"acme-taz": "tool-taz",
"acme-tweety": "client-tweety",
"acme-yosemitesam": "client-yosemitesam",
"infrastructure": "infra-azure",
"json-schema": "data-jsonschema",
"mapping-data": "data-mapping",
"monitoring": "tool-monitoring"
},
"patternValue": "Acme\\{value}"
}
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment