stable

Clone or download

Read-only

Use the new REST path createmeta for Jira Server 9+

This is part request #28831 Take into account Jira REST createmeta depreciation The current calls of the Jira REST API createmeta is depreciated since Jira 8.4 and will bhe removed for Jira 9.0[1] Our import tool must use this new way of retrieving the information if possible (regarding flavor and version). [1] https://confluence.atlassian.com/jiracore/createmeta-rest-endpoint-to-be-removed-975040986.html Please note that this new URI path is not available on Jira Cloud instances. Change-Id: Ie6fd7594ae938acbe4f277afde611e43ce080eb2

Modified Files

Name
A plugins/jira_import/include/Project/JiraClientReplayBuilder.php +46 −0 Go to diff View file
M plugins/jira_import/include/Project/ReplayCreateProjectFromJiraCommand.php +6 −6 Go to diff View file
M plugins/jira_import/include/Project/ReplayImportCommand.php +6 −6 Go to diff View file
M plugins/tracker/include/Tracker/Creation/JiraImporter/ClientWrapper.php +32 −4 Go to diff View file
M plugins/tracker/include/Tracker/Creation/JiraImporter/Import/JiraXmlExporter.php +9 −1 Go to diff View file
A plugins/tracker/include/Tracker/Creation/JiraImporter/Import/Structure/AppendFieldsFromCreate.php +34 −0 Go to diff View file
A plugins/tracker/include/Tracker/Creation/JiraImporter/Import/Structure/AppendFieldsFromCreateMetaAPI.php +67 −0 Go to diff View file
A plugins/tracker/include/Tracker/Creation/JiraImporter/Import/Structure/AppendFieldsFromCreateMetaServer9API.php +72 −0 Go to diff View file
M plugins/tracker/include/Tracker/Creation/JiraImporter/Import/Structure/JiraFieldRetriever.php +11 −24 Go to diff View file
M plugins/tracker/include/Tracker/Creation/JiraImporter/JiraClient.php +2 −0 Go to diff View file
M plugins/tracker/include/Tracker/Creation/JiraImporter/JiraClientReplay.php +19 −6 Go to diff View file
M plugins/tracker/include/Tracker/Creation/JiraImporter/JiraCloudClient.php +6 −1 Go to diff View file
A plugins/tracker/include/Tracker/Creation/JiraImporter/JiraServer7and8Client.php +37 −0 Go to diff View file
R plugins/tracker/include/Tracker/Creation/JiraImporter/JiraServerClient.php Go to diff View file
M plugins/tracker/tests/unit/Tracker/Creation/JiraImporter/Import/JiraXmlExporterTest.php +29 −3 Go to diff View file
M plugins/tracker/tests/unit/Tracker/Creation/JiraImporter/Import/Structure/JiraFieldRetrieverTest.php +90 −3 Go to diff View file
A plugins/tracker/tests/unit/Tracker/Creation/JiraImporter/Import/_fixtures/SBXv9/6228766c052f93cee99fb37192219454b5c9a993.json +576 −0 Go to diff View file
A plugins/tracker/tests/unit/Tracker/Creation/JiraImporter/Import/_fixtures/SBXv9/7a07648eb9f07aaf54edbe443feae2c04dbfca6b.json +1148 −0 Go to diff View file
A plugins/tracker/tests/unit/Tracker/Creation/JiraImporter/Import/_fixtures/SBXv9/821ab2f69bb73bd43211ab31c36d613fdc73345d.json +209 −0 Go to diff View file
A plugins/tracker/tests/unit/Tracker/Creation/JiraImporter/Import/_fixtures/SBXv9/d8185100aa609050c6d2ba8c3c2f2f4c2c2aecbe.json +9 −0 Go to diff View file
A plugins/tracker/tests/unit/Tracker/Creation/JiraImporter/Import/_fixtures/SBXv9/e508e4aa43d33f8c1ff0c86b31833b175270193a.json +1325 −0 Go to diff View file
A plugins/tracker/tests/unit/Tracker/Creation/JiraImporter/Import/_fixtures/SBXv9/expand_editmeta_search.json +906 −0 Go to diff View file
A plugins/tracker/tests/unit/Tracker/Creation/JiraImporter/Import/_fixtures/SBXv9/manifest.log +13 −0 Go to diff View file
A plugins/tracker/tests/unit/Tracker/Creation/JiraImporter/Import/_fixtures/SBXv9/priorities.json +42 −0 Go to diff View file
A plugins/tracker/tests/unit/Tracker/Creation/JiraImporter/Import/_fixtures/SBXv9/sbx6.json +605 −0 Go to diff View file
A plugins/tracker/tests/unit/Tracker/Creation/JiraImporter/Import/_fixtures/SBXv9/tracker.xml +1025 −0 Go to diff View file
M plugins/tracker/tests/unit/Tracker/Creation/JiraImporter/Stub/JiraCloudClientStub.php +6 −1 Go to diff View file
M plugins/tracker/tests/unit/Tracker/Creation/JiraImporter/Stub/JiraServerClientStub.php +6 −1 Go to diff View file