Content
View differences
Updated by Wieland Lindenthal over 3 years ago
**As a** Nextcloud user working on a file
**I want to** create a new work package that is linked to this file
**So that** I don't need to leave the Nextcloud UI in order to track work packages related to the file.
# Acceptance criteria
* The work package creation in Nextcloud will always happen in the tab "OpenProject" in the split screen with three possible triggers:
* When no work packages are linked yet (empty state) below In an empty status tab (file without relations) bellow the empty list message will appear a button will appear (see visuals).
* In the case that the this file has already has links to existing work packages, packages linked at the bottom of the work packages list it will be displayed a button is shown ("list entry").
* When the user uses the search bar to find an existing work package a last option in the list will be displayed so the user can always create the work package if needed.
* All this entry points will open a section to create a work package that contains:
* **Project:**
* A project search bar that allows the user to select in which project the work package will be created. created.
* In case the user tries save the work package without selecting a project an error message will be displayed bellow the field.
* **Type:**
* By default the type selected will always be a TASK.
* The user can change to any other allowed type. type.
* In the case the user selected a type and then change the project and this type is not available for that project, the type will be replaced with the first allowed type in the list.
* **Subject:**
* The user can type any subject desired and this field is mandatory. If the user tries to save the work package without subject an error message will be displayed bellow the field.
* The field will horizontally scroll if the typed subject is too long to be displayed (no multi-line).
* **Action buttons:**
* A "Cancel" and a "Save" button are always present and active.
* If the "Save" button is clicked without the user having selected a project or/and a subject an error message will be displayed bellow the field.
* The keyboard "Enter" will also apply the "Save" and the "ESC" key will "Cancel".
# Visuals
<img class="op-uc-image op-uc-image_inline" src="/api/v3/attachments/40058/content"><img class="op-uc-image op-uc-image_inline" src="/api/v3/attachments/40059/content"><img class="op-uc-image op-uc-image_inline" src="/api/v3/attachments/40049/content"><img class="op-uc-image op-uc-image_inline" src="/api/v3/attachments/40054/content"><img class="op-uc-image op-uc-image_inline" src="/api/v3/attachments/40057/content"><img class="op-uc-image op-uc-image_inline" src="/api/v3/attachments/40051/content"><img class="op-uc-image op-uc-image_inline" src="/api/v3/attachments/40052/content"><img class="op-uc-image op-uc-image_inline" src="/api/v3/attachments/40056/content"><img class="op-uc-image op-uc-image_inline" src="/api/v3/attachments/40055/content">
# Figma
https://www.figma.com/file/gtLQfPe09X7XugAH8L7dTy/Nextcloud-Integration?node-id=3008%3A77010
**I want to** create a new work package that is linked to this file
**So that** I don't need to leave the Nextcloud UI in order to track work packages related to the file.
# Acceptance criteria
* The work package creation in Nextcloud will always happen in the tab "OpenProject" in the split screen with three possible triggers:
* When no work packages are linked yet (empty state) below
* In the case that the
* When the user uses the search bar to find an existing work package a last option in the list will be displayed so the user can always create the work package if needed.
* All this entry points will open a section to create a work package that contains:
* **Project:**
* A project search bar that allows the user to select in which project the work package will be created.
* In case the user tries save the work package without selecting a project an error message will be displayed bellow the field.
* **Type:**
* By default the type selected will always be a TASK.
* The user can change to any other allowed type.
* In the case the user selected a type and then change the project and this type is not available for that project, the type will be replaced with the first allowed type in the list.
* **Subject:**
* The user can type any subject desired and this field is mandatory. If the user tries to save the work package without subject an error message will be displayed bellow the field.
* The field will horizontally scroll if the typed subject is too long to be displayed (no multi-line).
* **Action buttons:**
* A "Cancel" and a "Save" button are always present and active.
* If the "Save" button is clicked without the user having selected a project or/and a subject an error message will be displayed bellow the field.
* The keyboard "Enter" will also apply the "Save" and the "ESC" key will "Cancel".
# Visuals
<img class="op-uc-image op-uc-image_inline" src="/api/v3/attachments/40058/content"><img class="op-uc-image op-uc-image_inline" src="/api/v3/attachments/40059/content"><img class="op-uc-image op-uc-image_inline" src="/api/v3/attachments/40049/content"><img class="op-uc-image op-uc-image_inline" src="/api/v3/attachments/40054/content"><img class="op-uc-image op-uc-image_inline" src="/api/v3/attachments/40057/content"><img class="op-uc-image op-uc-image_inline" src="/api/v3/attachments/40051/content"><img class="op-uc-image op-uc-image_inline" src="/api/v3/attachments/40052/content"><img class="op-uc-image op-uc-image_inline" src="/api/v3/attachments/40056/content"><img class="op-uc-image op-uc-image_inline" src="/api/v3/attachments/40055/content">
# Figma
https://www.figma.com/file/gtLQfPe09X7XugAH8L7dTy/Nextcloud-Integration?node-id=3008%3A77010