Skip to content

Commit

Permalink
Merge pull request #854 from solidify/feature/optional-jira-css-style-2
Browse files Browse the repository at this point in the history
Feature/optional jira css style 2
  • Loading branch information
Alexander-Hjelm authored Sep 7, 2023
2 parents aed858a + 13f3f01 commit 059e54e
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 2 deletions.
2 changes: 2 additions & 0 deletions docs/Samples/config-agile.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": [
Expand Down
1 change: 1 addition & 0 deletions docs/Samples/config-basic.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down
1 change: 1 addition & 0 deletions docs/Samples/config-cmmi.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down
1 change: 1 addition & 0 deletions docs/Samples/config-scrum.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down
1 change: 1 addition & 0 deletions docs/config.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.|
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down
2 changes: 1 addition & 1 deletion src/WorkItemMigrator/Migration.Common/Config/ConfigJson.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}

0 comments on commit 059e54e

Please sign in to comment.