Writing needs in MyST¶
The MyST forms of the specimens on Writing needs, each rendered live by this page’s own Markdown parser. Their needs carry ids of their own, because a need id must be unique in the project.
A need and its links¶
Four linked needs
```{req} Export the report as CSV
:id: EX_REQ_MYST_EXPORT
:status: open
:tags: export, reporting
A user can save the report as a CSV file.
```
```{spec} One row per record
:id: EX_SPEC_MYST_EXPORT
:status: open
:links: EX_REQ_MYST_EXPORT
The file has a header row, then one row per record.
```
```{impl} CSV writer
:id: EX_IMPL_MYST_EXPORT
:status: done
:links: EX_SPEC_MYST_EXPORT
The writer emits the rows in the order the report shows them.
```
```{test} CSV writer test
:id: EX_TEST_MYST_EXPORT
:status: passed
:links: EX_IMPL_MYST_EXPORT
Exports a two-record report and compares the file with the expected one.
```
A user can save the report as a CSV file. |
The file has a header row, then one row per record. |
The writer emits the rows in the order the report shows them. |
Exports a two-record report and compares the file with the expected one. |
Need parts¶
Card options¶
Card options
```{spec} Quote fields that hold a comma
:id: EX_SPEC_MYST_EXPORT_QUOTING
:status: open
:links: EX_REQ_MYST_EXPORT
:collapse: true
A field that holds a comma is written in double quotes.
```
```{spec} Name the file after the report
:id: EX_SPEC_MYST_EXPORT_FILENAME
:status: open
:links: EX_REQ_MYST_EXPORT
:layout: complete
:style: green_border
The file takes the report's title as its name.
```
A field that holds a comma is written in double quotes. |
Name the file after the report
|
Specification
|
||||
The file takes the report’s title as its name. |
|||||