Skip to content

New work item modal on epic list page

Simon Knox requested to merge psi-wie into master

What does this MR do and why?

Minimal attempt at Work items at the group level - create epic fro... (#429127 - closed)

Not as big as it looks! Diff is bigger due to moving some files around.

  • Move most of create_work_item.vue from pages/ to components/
  • Make previous page a shell over the form component
  • Show a modal when clicking "New epic" on epics list page, that creates an Epic Work Item
  • If you pass a workItemType to the form, don't show the workItemTypes select field
  • After creating epic, show the epic

What is broken:

MR acceptance checklist

Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

Screenshots or screen recordings

Screenshot_2024-02-23_at_16.21.00

How to set up and validate locally

  1. In rails console enable the feature flag
    Feature.enable(:namespace_level_work_items)
    Feature.enable(:work_items_mvc_2) # not strictly needed but helps be up to date
  2. Visit Epics page for a group
  3. Click the New Epic button
  4. Create an Epic

To test existing work_items form:

  1. Go to work items new page (e.g. http://gdk.test:3000/gitlab-org/gitlab-test/-/work_items/new)
  2. Enter title and select work item type
  3. Create work item
Edited by Simon Knox

Merge request reports