stable

Clone or download

Read-only

feat: Allow parent artifact selection when project has a parent project

part of: story #22681 select a parent from Program for my features/enablers Originally, the parent artifact selector was available only when the current tracker had a parent tracker. In the SAFe context, we do not have any tracker hierachy between a parent project and its children trackers. In this case, we need to detect whether the current project is a team, so we are able to display the select box when needed. How to test: - Given a tracker with no child relation to any other tracker of the current project - Given that the current project is a child of another project in a program management context - Given that the artifact has not a parent artifact yet - Given that some artifacts are eligible to be parent in the parent project --> In the artifact modal (kanban/PV2/TTM) the parent selector is displayed Change-Id: I126369ee89840fad6b6f7e22f5a6e6f39d3eeb20

Modified Files

Name
M plugins/agiledashboard/include/AgileDashboard/Kanban/ShowKanbanController.php +12 −2 Go to diff View file
M plugins/agiledashboard/include/AgileDashboard/KanbanPresenter.class.php +5 −1 Go to diff View file
M plugins/agiledashboard/include/AgileDashboard/Milestone/Pane/Planning/PlanningV2Presenter.class.php +5 −1 Go to diff View file
M plugins/agiledashboard/include/AgileDashboard/Widget/Kanban.php +15 −4 Go to diff View file
M plugins/agiledashboard/include/AgileDashboard/Widget/MyKanban.php +5 −2 Go to diff View file
M plugins/agiledashboard/include/AgileDashboard/Widget/ProjectKanban.php +5 −2 Go to diff View file
M plugins/agiledashboard/include/AgileDashboardRouter.class.php +2 −1 Go to diff View file
M plugins/agiledashboard/include/Planning/MilestonePaneFactory.class.php +6 −1 Go to diff View file
M plugins/agiledashboard/include/Planning/VirtualTopMilestonePaneFactory.class.php +6 −1 Go to diff View file
M plugins/agiledashboard/include/agiledashboardPlugin.php +4 −2 Go to diff View file
M plugins/agiledashboard/scripts/kanban/src/app/app-kanban-controller.js +5 −2 Go to diff View file
M plugins/agiledashboard/scripts/kanban/src/app/app-kanban-controller.test.js +2 −0 Go to diff View file
M plugins/agiledashboard/scripts/kanban/src/app/app-main-controller.js +5 −0 Go to diff View file
M plugins/agiledashboard/scripts/kanban/src/app/shared-properties/shared-properties-service.js +7 −0 Go to diff View file
M plugins/agiledashboard/scripts/planning-v2/src/app/backlog-item/backlog-item-details/backlog-item-details-controller.js +2 −1 Go to diff View file
M plugins/agiledashboard/scripts/planning-v2/src/app/backlog-item/backlog-item-details/backlog-item-details-controller.test.js +1 −0 Go to diff View file
M plugins/agiledashboard/scripts/planning-v2/src/app/backlog/backlog-controller.js +4 −2 Go to diff View file
M plugins/agiledashboard/scripts/planning-v2/src/app/backlog/backlog-controller.test.js +2 −0 Go to diff View file
M plugins/agiledashboard/scripts/planning-v2/src/app/edit-item/edit-item-service.js +2 −1 Go to diff View file
M plugins/agiledashboard/scripts/planning-v2/src/app/main-controller.js +5 −0 Go to diff View file
M plugins/agiledashboard/scripts/planning-v2/src/app/planner-view/planner-view-component.js +6 −3 Go to diff View file
M plugins/agiledashboard/scripts/planning-v2/src/app/planner-view/planner-view-component.test.js +4 −0 Go to diff View file
M plugins/agiledashboard/scripts/planning-v2/src/app/shared-properties/shared-properties-service.js +11 −0 Go to diff View file
M plugins/agiledashboard/templates/kanban.mustache +1 −0 Go to diff View file
M plugins/agiledashboard/templates/pane-planning-v2.mustache +1 −0 Go to diff View file
M plugins/agiledashboard/templates/widgets/widget-kanban.mustache +1 −0 Go to diff View file
M plugins/program_management/include/program_managementPlugin.php +12 −0 Go to diff View file
M plugins/testmanagement/include/TestManagement/IndexController.class.php +5 −0 Go to diff View file
M plugins/testmanagement/include/TestManagement/IndexPresenter.class.php +6 −1 Go to diff View file
M plugins/testmanagement/scripts/testmanagement/src/app-controller.js +5 −0 Go to diff View file
M plugins/testmanagement/scripts/testmanagement/src/campaign/campaign-edit-controller.js +2 −1 Go to diff View file
M plugins/testmanagement/scripts/testmanagement/src/execution/execution-detail-controller.js +3 −1 Go to diff View file
M plugins/testmanagement/scripts/testmanagement/src/shared-properties/shared-properties-service.js +39 −28 Go to diff View file
M plugins/testmanagement/templates/index.mustache +1 −0 Go to diff View file
M plugins/tracker/scripts/lib/artifact-modal/src/fields/link-field/link-field-controller.js +23 −9 Go to diff View file
M plugins/tracker/scripts/lib/artifact-modal/src/fields/link-field/link-field-controller.test.js +2 −1 Go to diff View file
M plugins/tracker/scripts/lib/artifact-modal/src/fields/link-field/link-field-directive.js +1 −0 Go to diff View file
M plugins/tracker/scripts/lib/artifact-modal/src/fields/link-field/link-field-service.js +2 −2 Go to diff View file
M plugins/tracker/scripts/lib/artifact-modal/src/fields/link-field/link-field-service.test.js +16 −8 Go to diff View file
M plugins/tracker/scripts/lib/artifact-modal/src/tuleap-artifact-modal-controller.js +1 −0 Go to diff View file
M plugins/tracker/scripts/lib/artifact-modal/src/tuleap-artifact-modal-service.js +18 −3 Go to diff View file
M plugins/tracker/scripts/lib/artifact-modal/src/tuleap-artifact-modal.tpl.html +1 −0 Go to diff View file
A src/common/Event/Events/HasCurrentProjectParentProjects.php +54 −0 Go to diff View file