Skip to content

Work Items - Clone via the UI

Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.

Opportunity

Currently in legacy issues users can use the /clone quick action to duplicate an issue. As a quick action there are minimal controls over what gets duplicated beyond the --with-notes flag.

While maintaining that quick action for backward support, we should add a new UI-based control that allows users to populate a new work item form with all the same details as the current item. This will allow the user to modify inputs before saving, or just hit "save" to create a copy identical to /clone.

Proposal

  • Add an option to the work item actions menu called "Make a copy" (users who can create a work item only)
  • On clicking "Make a copy", the modal New work item form is open
    • This form should be pre-filled with all applicable values from the current item.
    • Group/project and Type fields (once available) remain accessible and work the same as usual, i.e. changing project or type may clear values from the form.
  • Fields that are not present in the work item form do not get duplicated.
  • There is no connection between the source object and the newly created object, and no note left on the source object.
  • In the new object, notes exist the same as if creating the item by filling out a blank form (no unique "copy" behavior).
Edited by 🤖 GitLab Bot 🤖