stable

Clone or download

Read-only

Handle user-defined mappings on custom fields (not status)

Part of story #13641: See solo cards in their column How to test: - Given the milestone planning lets you add "User stories" to "Releases", remove the Status semantic from "User stories". Configure the cardwall mapping so that "Status" field is used (or another list field) - When you browse the taskboard, the User stories should be in the right column (and no longer "without status"). - Cards from trackers using a multi-selectbox as "cardwall mapped field" should be in the right column. When multiple values are selected, for example "Done, Review" then the first one should be used for the mapping: "Done". - No change for trackers using the automatic "duck-typing" Status semantic mapping. They are still in the right column. Change-Id: I670fe5fff9e279771ca9e51f3f392fea1eaab986

Modified Files

Name
M plugins/cardwall/include/FieldProviders/CustomFieldProvider.class.php +2 −2 Go to diff View file
M plugins/cardwall/include/FieldProviders/IProvideFieldGivenAnArtifact.class.php +3 −3 Go to diff View file
M plugins/cardwall/include/FieldProviders/SemanticStatusFieldProvider.class.php +2 −2 Go to diff View file
M plugins/cardwall/include/OnTop/Config.class.php +2 −2 Go to diff View file
M plugins/cardwall/include/REST/v1/CardValidator.php +5 −1 Go to diff View file
M plugins/cardwall/include/SingleCard.class.php +3 −3 Go to diff View file
M plugins/cardwall/include/SingleCardBuilder.class.php +11 −8 Go to diff View file
A plugins/taskboard/include/Column/FieldValuesToColumnMapping/MappedFieldRetriever.php +51 −0 Go to diff View file
A plugins/taskboard/include/Column/FieldValuesToColumnMapping/MappedFieldValueRetriever.php +84 −0 Go to diff View file
M plugins/taskboard/include/Column/FieldValuesToColumnMapping/TrackerMappingPresenter.php +5 −1 Go to diff View file
M plugins/taskboard/include/Column/FieldValuesToColumnMapping/TrackerMappingPresenterBuilder.php +17 −24 Go to diff View file
M plugins/taskboard/include/REST/v1/CardRepresentation.php +5 −6 Go to diff View file
M plugins/taskboard/include/REST/v1/CardRepresentationBuilder.php +46 −17 Go to diff View file
R plugins/taskboard/include/REST/v1/StatusRepresentation.php Go to diff View file
M plugins/taskboard/include/REST/v1/TaskboardResource.php +3 −15 Go to diff View file
M plugins/taskboard/include/taskboardPlugin.php +5 −10 Go to diff View file
A plugins/taskboard/phpunit/Column/FieldValuesToColumnMapping/MappedFieldRetrieverTest.php +104 −0 Go to diff View file
A plugins/taskboard/phpunit/Column/FieldValuesToColumnMapping/MappedFieldValueRetrieverTest.php +215 −0 Go to diff View file
M plugins/taskboard/phpunit/Column/FieldValuesToColumnMapping/TrackerMappingPresenterBuilderTest.php +65 −52 Go to diff View file
M plugins/taskboard/scripts/taskboard/src/components/TaskBoard/Swimlane/NoMappingMessage.test.ts +2 −2 Go to diff View file
M plugins/taskboard/scripts/taskboard/src/components/TaskBoard/Swimlane/NoMappingMessage.vue +2 −2 Go to diff View file
M plugins/taskboard/scripts/taskboard/src/components/TaskBoard/Swimlane/SoloCard.test.ts +3 −3 Go to diff View file
M plugins/taskboard/scripts/taskboard/src/components/TaskBoard/Swimlane/SoloCard.vue +15 −8 Go to diff View file
M plugins/taskboard/scripts/taskboard/src/type.d.ts +2 −2 Go to diff View file