stable

Clone or download

Read-only

fix: Create labels on the fly when doing Jira Import

Jira Server doesn't have an API to list labels. However it turns out that there is no need for having the whole list of labels upfront because we can rely on OpenList, on the fly creation of values. As downside, it's not possible to import labels that are defined but not used but it's an acceptable tradeoff (it might even not be possible in Jira). Closes request #31120 Jira Labels field must be imported as an open list Change-Id: Id03932fb07801a61fdbac17ec860e8dcb5238b58

Modified Files

Name
M plugins/jira_import/include/Project/CreateProjectFromJira.php +0 −7 Go to diff View file
M plugins/jira_import/include/Project/ReplayImportCommand.php +0 −2 Go to diff View file
M plugins/tracker/include/Tracker/Creation/JiraImporter/FromJiraTrackerCreator.php +0 −7 Go to diff View file
M plugins/tracker/include/Tracker/Creation/JiraImporter/Import/Artifact/FieldChangeXMLExporter.php +2 −11 Go to diff View file
M plugins/tracker/include/Tracker/Creation/JiraImporter/Import/JiraXmlExporter.php +0 −5 Go to diff View file
M plugins/tracker/include/Tracker/Creation/JiraImporter/Import/Structure/JiraToTuleapFieldTypeMapper.php +2 −14 Go to diff View file
D plugins/tracker/include/Tracker/Creation/JiraImporter/Import/Structure/Labels/JiraLabel.php +0 −39 Go to diff View file
D plugins/tracker/include/Tracker/Creation/JiraImporter/Import/Structure/Labels/JiraLabelsCollection.php +0 −50 Go to diff View file
D plugins/tracker/include/Tracker/Creation/JiraImporter/Import/Structure/Labels/JiraLabelsRetriever.php +0 −32 Go to diff View file
D plugins/tracker/include/Tracker/Creation/JiraImporter/Import/Structure/Labels/JiraLabelsRetrieverFromAPI.php +0 −61 Go to diff View file
M plugins/tracker/include/Tracker/XML/Exporter/FieldChange/FieldChangeListBuilder.php +23 −0 Go to diff View file
M plugins/tracker/tests/unit/Tracker/Creation/JiraImporter/Import/Artifact/FieldChangeXMLExporterTest.php +6 −3 Go to diff View file
M plugins/tracker/tests/unit/Tracker/Creation/JiraImporter/Import/JiraXmlExporterTest.php +0 −5 Go to diff View file
M plugins/tracker/tests/unit/Tracker/Creation/JiraImporter/Import/Structure/JiraToTuleapFieldTypeMapperTest.php +0 −4 Go to diff View file
M plugins/tracker/tests/unit/Tracker/Creation/JiraImporter/Import/_fixtures/IE/tracker.xml +2 −6 Go to diff View file