Content
View differences
Updated by Andrej Sandorf about 3 years ago
# User story
**As** a project member
**I want to** create professionally styled work plan documents (pdf)
**so that** I don't have to create them manually in a text editor.
# Acceptance criteria
## Export modal
###48274 [https://community.openproject.org/projects/openproject/work\_packages/48274](https://community.openproject.org/projects/openproject/work_packages/48274)
## Styling
###48275 [https://community.openproject.org/projects/14/work\_packages/48275](https://community.openproject.org/projects/14/work_packages/48275)
## Structure of the pdf
###48375 Link to the document template that shows the structure of the pdf export (draft): [https://nextcloud.openproject.org/s/qRsCyZDTaaALwAB](https://nextcloud.openproject.org/s/qRsCyZDTaaALwAB)
The exported pdf consists of two components
* [x] Index table or Table of Content
* [x] Detail sections (one detail section for each exported work package)
### Index table
* [x] Table view that shows the columns from the query
* [x] The table shows the hierarchy by indention (if query is in hierarchy view)
* [x] Only the first four columns are shown (this value might change in the future).
* [x] If only the index table is exported: PDF is in landscape format
### Detail sections
* [x] For each work package there is heading based on the work package subject
* [x] Below each work package heading there is `detail table` that shows the
selected columns, if export by query
attributes, if single work package export
* [x] The main text contains all long text field with the corresponding label (bold)
* [ ] The text fields are ordered by their order in the custom field administration (not type form configuration).
* [ ] Description
* [ ] Long text custom field 1
* [ ] Long text custom field 2
* [ ] ....
* [x] Page breaks
* [x] The headers are not separated from their detail tables.
* [x] The long text field labels are not separated from their text.
## Text formatting
* All text formatting supported by our text editors
* [x] Bold
* [x] Italic
* [x] Strikethrough
* [x] Code
* [x] Codeblock
* [x] Links
* [x] Embedded pictures
* [x] Tables
* [x] Ordered list
* [x] Unordered list
* [x] Task list
# Open
* ~~Do we need a limit of exported work packages, e.g. 500~~ No
* How do we handle parent work packages that are filtered out?
* ~~"Paper format" Page size in PDF (A4 vs EXECUTIVE)?~~ Will be made configurable with the PDF styles
**As** a project member
**I want to** create professionally styled work plan documents (pdf)
**so that** I don't have to create them manually in a text editor.
# Acceptance criteria
## Export modal
###48274
## Styling
###48275
## Structure of the pdf
###48375
The exported pdf consists of two components
* [x] Index table or Table of Content
* [x] Detail sections (one detail section for each exported work package)
### Index table
* [x] Table view that shows the columns from the query
* [x] The table shows the hierarchy by indention (if query is in hierarchy view)
* [x] Only the first four columns are shown (this value might change in the future).
* [x] If only the index table is exported: PDF is in landscape format
### Detail sections
* [x] For each work package there is heading based on the work package subject
* [x] Below each work package heading there is `detail table` that shows the
selected columns, if export by query
attributes, if single work package export
* [x] The main text contains all long text field with the corresponding label (bold)
* [ ] The text fields are ordered by their order in the custom field administration (not type form configuration).
* [ ] Description
* [ ] Long text custom field 1
* [ ] Long text custom field 2
* [ ] ....
* [x] Page breaks
* [x] The headers are not separated from their detail tables.
* [x] The long text field labels are not separated from their text.
## Text formatting
* All text formatting supported by our text editors
* [x] Bold
* [x] Italic
* [x] Strikethrough
* [x] Code
* [x] Codeblock
* [x] Links
* [x] Embedded pictures
* [x] Tables
* [x] Ordered list
* [x] Unordered list
* [x] Task list
# Open
* ~~Do we need a limit of exported work packages, e.g. 500~~ No
* How do we handle parent work packages that are filtered out?
* ~~"Paper format" Page size in PDF (A4 vs EXECUTIVE)?~~ Will be made configurable with the PDF styles