# Epic OP-1741 - Create work packages in split view

Project: OpenProject
Status: closed
URL: https://community.openproject.org/work_packages/OP-1741

## Detailed specification

### Motivation and background information

### Acceptance criteria

### Out of scope

| Attribute | Value |
| --- | --- |
| Mockups |  |

## Planning

| Attribute | Value |
| --- | --- |
| Roadmap |  |
| Date | 2015-06-01 – 2015-08-20 |
| Votes |  |
| List |  |
| Target versions | 5.0.0 |
| Sprint | 5.0.0 |
| Backlog bucket |  |
| Relevance |  |

## Subitems

| ID | Type | Subject | Status | Assignee | Target versions | Project | Priority | Spent time |
| --- | --- | --- | --- | --- | --- | --- | --- | --- |
| OP-1717 | Feature | [details pane] Add attachments in work package create form | closed |  | 5.0.0 | OpenProject | Medium |  |
| OP-1950 | Feature | [details pane] Add and remove attachments in details view (create/edit) | closed |  | 5.0.0 | OpenProject | Medium |  |
| OP-1955 | Feature | [WP pane] Create work package (minimal solution) | closed |  | 5.0.0 | OpenProject | Medium |  |
| OP-2058 | Feature | [API] Allow to determine maximum filesize via APIv3 | closed |  | 5.0.0 | OpenProject | Medium |  |

## Bugs and other work packages

| ID | Type | Subject | Status | Assignee | Target versions | Module |
| --- | --- | --- | --- | --- | --- | --- |
| OP-2168 | Bug | Changing the type does not change the associated custom fields in work package split screen create view | closed |  | 5.0.0 |  |
| OP-2116 | Bug | Can't update properties after uploading attachments | closed |  | 5.0.0 |  |
| OP-2157 | Bug | File selection section is not hidden in show view when there is no attachment | closed |  | 5.0.0 |  |
| OP-2156 | Bug | In the create form the file selection section should only be visible after clicking the "show all attributes" button | closed |  | 5.0.0 |  |
| OP-2100 | Bug | [API] Creating an attachment does not create a journal | closed |  | 5.0.0 |  |

## Details

| Attribute | Value |
| --- | --- |
| Module |  |
| Enterprise plan |  |
| Labels |  |

## People

| Attribute | Value |
| --- | --- |
| Assignee |  |
| Accountable | Alex Dik |
| Product manager |  |
| Feature Lead |  |
| Designer |  |
| Developers |  |
| Requested by |  |
| Interest by |  |

## Estimates and progress

| Attribute | Value |
| --- | --- |
| Work |  |

## Description

**As** an OpenProject user  
**I want** to create work packages in the split view  
**so that** I do not need to leave the page.

**Acceptance criteria**

  - In the split view pressing the create button opens the new work package create form in the split view. 
  - Only the following attributes are shown
      - Title
      - Type
      - Status
      - Description
      - Mandatory custom fields
      - Assignee
      - Percentage done
  - Pressing the “Show all”-button shows:
      - Percentage done
      - Priority
      - All other attributes activated for the respective type and project
      - File-Selection
  - Changing the type changes the form.
      - Add and remove custom fields.
      - Add or remove fields as specified by plugins (e.g. backlogs).
      - Handle status that are invalid for the respective workflow.
  - Three buttons in the toolbar: save (default), save and send email, cancel.

**Visuals**

  - http://clients.zzmedia.net/openproject/workpackages/split-view/create/

**Technical solution concept**

  - Use the schemata provided by the APIv3 to decide on the structure of the form (this should already be a given in the current implementation).

**Out of Scope**

  - It will not be possible to add watchers on creation. They can be added afterwards. 

**Open**

  - Do we need Alert and Event Messages first?
  - How do handle “Percentage-Done”?
  - What happens after clicking the cancel-button?

**Known bugs**

  - Custom fields do not disappear for types they aren’t defined for.
  - The same for attributes from Backlogs. Once shown, they stay.
  - Remaining hours from Backlogs are not getting shown.
  - Statuses (both, selected and list of possible) don’t get updated.
  - Mails always get sent.
  - If you’re not a member of the project the status attribute is missing. If you are allowed to create work package without being member that could lead to problems.
