stable

Clone or download

Read-only

Import Story Points field as initial effort

There is no reliable ways to find all the fields an issue type can have[1] and it's un-clear whether Story Points are limited to "Story" issue types. So the strategy for Story Points is the following: - The Board Configuration advertise which field is used to hold Story Points - All trackers (except sub-tasks) are created with a Story Points field "in case of". At least, in Tuleap, as they are in the Agile Dashboard configuration, they can have story points. The semantic stuff will be done in a dedicated commit. Note: Tracker_FormElementFactory was modified because I first thought to make the field computed but it's not relevant here. However, the modifications made here was worth to keep IMHO. [1] https://community.developer.atlassian.com/t/rest-api-for-fieldlayoutscheme-and-issuetypescreenscheme/37714/2 Part of story #19242 create Jira project with Agile configuration Change-Id: Ibf7559a00135f29edee8ef8dd7e5b8b05cc2cfb5

Modified Files

Name
M plugins/jira_import/include/JiraAgile/Board/JiraBoardConfiguration.php +21 −11 Go to diff View file
M plugins/jira_import/include/JiraAgile/JiraAgileImporter.php +15 −32 Go to diff View file
M plugins/jira_import/include/Project/CreateProjectFromJira.php +38 −21 Go to diff View file
M plugins/jira_import/tests/unit/JiraAgile/Board/JiraBoardConfigurationTest.php +28 −4 Go to diff View file
M plugins/jira_import/tests/unit/JiraAgile/JiraAgileImporterTest.php +26 −93 Go to diff View file
M plugins/tracker/include/Tracker/Creation/JiraImporter/Configuration/PlatformConfiguration.php +22 −0 Go to diff View file
M plugins/tracker/include/Tracker/Creation/JiraImporter/Import/AlwaysThereFieldsExporter.php +2 −0 Go to diff View file
M plugins/tracker/include/Tracker/Creation/JiraImporter/Import/JiraXmlExporter.php +28 −6 Go to diff View file
M plugins/tracker/include/Tracker/Creation/JiraImporter/Import/Structure/FieldMappingCollection.php +3 −0 Go to diff View file
M plugins/tracker/include/Tracker/Creation/JiraImporter/Import/Structure/JiraFieldRetriever.php +8 −1 Go to diff View file
M plugins/tracker/include/Tracker/Creation/JiraImporter/Import/Structure/JiraToTuleapFieldTypeMapper.php +8 −1 Go to diff View file
A plugins/tracker/include/Tracker/Creation/JiraImporter/Import/Structure/StoryPointFieldExporter.php +79 −0 Go to diff View file
M plugins/tracker/include/Tracker/FormElement/Tracker_FormElementFactory.php +6 −5 Go to diff View file
M plugins/tracker/tests/unit/Tracker/Creation/JiraImporter/Import/Structure/JiraFieldRetrieverTest.php +3 −2 Go to diff View file
M plugins/tracker/tests/unit/Tracker/Creation/JiraImporter/Import/Structure/JiraToTuleapFieldTypeMapperTest.php +71 −16 Go to diff View file
A plugins/tracker/tests/unit/Tracker/Creation/JiraImporter/Import/Structure/StoryPointFieldExporterTest.php +131 −0 Go to diff View file