Content
View differences
Updated by Wieland Lindenthal about 1 month ago
**As** a project member
**I want to** duplicate an existing document
**so that** I can use it as a starting point without modifying the original.
**Acceptance criteria**
* A "Duplicate" action is available from the document view (e.g. via the document's action menu).
* A "Duplicate" action is available on the the document list view.
* Selecting it opens a dialog with:
* A **project selector** defaulting to the current project (only showing projects with Documents enabled). \[Nice to have\]
* A **title field** pre-filled with "Copy of {original document title}", focused and in edit mode.
* A primary **"Duplicate"** button and a secondary **"Cancel"** button.
* On confirmation, the new document is created with the selected project and title.
**Technical notes**
* All document content, type content and formatting should be copied to the new document.
* Only projects with the Documents module enabled and where I have permission to manage documents should appear in the project selector.
**Permissions and visibility considerations**
* Only visible to users who have permission to view create documents in the current project. We check for `view` and not for `manage` because the user might chose to duplicate that document to another project where she has the rights to `manage` documents.
* The project selector should only show projects the user has access to and that have Documents enabled and where the user has the permission to manage documents. enabled.
**Translation considerations**
* "Duplicate" — preferred term over "Copy" (per Parimal).
* "Copy of {title}" — the default title prefix needs translation in all supported languages.
**Out of scope**
* Bulk duplication of multiple documents.
* Duplicating a document into a workspace or non-Documents-enabled project.
**I want to** duplicate an existing document
**so that** I can use it as a starting point without modifying the original.
**Acceptance criteria**
* A "Duplicate" action is available from the document view (e.g. via the document's action menu).
* A "Duplicate" action is available on the the document list view.
* Selecting it opens a dialog with:
* A **project selector** defaulting to the current project (only showing projects with Documents enabled). \[Nice to have\]
* A **title field** pre-filled with "Copy of {original document title}", focused and in edit mode.
* A primary **"Duplicate"** button and a secondary **"Cancel"** button.
* On confirmation, the new document is created with the selected project and title.
**Technical notes**
* All document content, type
* Only projects with the Documents module enabled and where I have permission to manage documents should appear in the project selector.
**Permissions and visibility considerations**
* Only visible to users who have permission to view
* The project selector should only show projects the user has access to and that have Documents enabled and where the user has the permission to manage documents.
**Translation considerations**
* "Duplicate" — preferred term over "Copy" (per Parimal).
* "Copy of {title}" — the default title prefix needs translation in all supported languages.
**Out of scope**
* Bulk duplication of multiple documents.
* Duplicating a document into a workspace or non-Documents-enabled project.