diff --git a/docs/Samples/config-agile.json b/docs/Samples/config-agile.json index 92e3f7a5..41205f9a 100644 --- a/docs/Samples/config-agile.json +++ b/docs/Samples/config-agile.json @@ -15,6 +15,8 @@ "base-iteration-path": "Migrated", "ignore-failed-links": true, "include-link-comments": true, + "include-jira-css-styles": true, + "sleep-time-between-revision-import-milliseconds": 0, "process-template": "Agile", "link-map": { "link": [ diff --git a/docs/Samples/config-basic.json b/docs/Samples/config-basic.json index 02c4b897..8c3daf56 100644 --- a/docs/Samples/config-basic.json +++ b/docs/Samples/config-basic.json @@ -15,6 +15,7 @@ "base-iteration-path": "Migrated", "ignore-failed-links": true, "include-link-comments": true, + "include-jira-css-styles": true, "sleep-time-between-revision-import-milliseconds": 0, "process-template": "Basic", "link-map": { diff --git a/docs/Samples/config-cmmi.json b/docs/Samples/config-cmmi.json index 4403c938..070725e7 100644 --- a/docs/Samples/config-cmmi.json +++ b/docs/Samples/config-cmmi.json @@ -15,6 +15,7 @@ "base-iteration-path": "SourceProject_Migrated", "ignore-failed-links": true, "include-link-comments": true, + "include-jira-css-styles": true, "sleep-time-between-revision-import-milliseconds": 0, "process-template": "CMMI", "link-map": { diff --git a/docs/Samples/config-scrum.json b/docs/Samples/config-scrum.json index bdd31f6a..1aa58c6b 100644 --- a/docs/Samples/config-scrum.json +++ b/docs/Samples/config-scrum.json @@ -15,6 +15,7 @@ "base-iteration-path": "Migrated", "ignore-failed-links": true, "include-link-comments": true, + "include-jira-css-styles": true, "sleep-time-between-revision-import-milliseconds": 0, "process-template": "Scrum", "link-map": { diff --git a/docs/config.md b/docs/config.md index 87fae28f..3a4fdf83 100644 --- a/docs/config.md +++ b/docs/config.md @@ -33,6 +33,7 @@ The migration configuration file is defined in a json file with the properties d |**base-iteration-path**|False|string|Iteration path. Default is empty.| |**ignore-failed-links**|False|boolean|Set to True if failed links are to be ignored. Default = False.| |**include-link-comments**|False|boolean|Set to True to get a verbose comment on the work item for every work item link created. Default = True.| +|**include-jira-css-styles**|True|boolean|Set to True to generate and include confluence CSS Stylesheets for description, repro steps and comments. Default = True.| |**sleep-time-between-revision-import-milliseconds**|False|integer|How many milliseconds to sleep between each revision import. Use this if throttling is an issue for ADO Services. Default = 0 (no sleep).| |**process-template**|False|string|Process template in the target DevOps project. Supported values: Scrum, Agile or CMMI. Default = "Scrum".| |**link-map**|True|json|List of **links** to map between Jira and Azure DevOps/TFS work item link types.| diff --git a/src/WorkItemMigrator/JiraExport/RevisionUtils/FieldMapperUtils.cs b/src/WorkItemMigrator/JiraExport/RevisionUtils/FieldMapperUtils.cs index 2ac7b845..4d0ddd5b 100644 --- a/src/WorkItemMigrator/JiraExport/RevisionUtils/FieldMapperUtils.cs +++ b/src/WorkItemMigrator/JiraExport/RevisionUtils/FieldMapperUtils.cs @@ -123,7 +123,7 @@ public static (bool, object) MapRenderedValue(JiraRevision r, string sourceField return (true, mappedValue); } } - value = CorrectRenderedHtmlvalue(value, r, config.IncludeJiraCssStyle); + value = CorrectRenderedHtmlvalue(value, r, config.IncludeJiraCssStyles); return (true, value); } diff --git a/src/WorkItemMigrator/Migration.Common/Config/ConfigJson.cs b/src/WorkItemMigrator/Migration.Common/Config/ConfigJson.cs index acaa0009..8c02f499 100644 --- a/src/WorkItemMigrator/Migration.Common/Config/ConfigJson.cs +++ b/src/WorkItemMigrator/Migration.Common/Config/ConfigJson.cs @@ -78,6 +78,6 @@ public class ConfigJson [JsonProperty(PropertyName = "include-commits")] public bool IncludeCommits { get; set; } = false; [JsonProperty(PropertyName = "include-jira-css-styles")] - public bool IncludeJiraCssStyle { get; set; } = true; + public bool IncludeJiraCssStyles { get; set; } = true; } }