Export format

Any member can download a whole workspace as one JSON file, from Export in workspace settings. The file holds the record as it is stored: every revision of every requirement, every version of every procedure, every run with its rows, every mapping and review, and every tag and where it was applied. Deleted things are in it too, marked as deleted. This page describes every field, so the file can be read without BreezeBlock.

The file is built when you ask for it, from one consistent moment: a change saved while it is being built is either wholly in it or not in it at all.

The file

One JSON object, UTF-8, with these keys in this order:

FieldHolds
formatAlways "breezeblock-workspace-export".
format_version1. It goes up if a field is removed or comes to mean something else. Fields can be added without it going up, so skip any you don't know.
exported_atWhen the file was built.
exported_byThe username of the member who downloaded it.
product_versionThe version of BreezeBlock that built it, such as 0.68.0.
workspaceAn object: id, the workspace's id from its address (/app/w/10k3m9xa); name; owner, the owner's username; created_at.
peopleEveryone who has been a member.
listsRequirement lists.
requirementsRequirements, each with its revisions.
verificationsVerifications, each with its versions.
mappingsMappings, each with its reviews.
runsRuns, each with its rows.
tagsTags, each with its options and where it was applied.

How fields are written

People

Everyone who has been a member of the workspace, in the order they first joined.

FieldHolds
usernameTheir current username.
currenttrue for a member now, false for someone who left or was removed.
ownertrue for the workspace's owner.

Requirement lists

Lists in sidebar order, then deleted lists by code.

FieldHolds
codeThe list's code.
titleIts title.
descriptionIts description, "" when there is none.
positionIts place in the sidebar.
created, updated, deletedAs above.

Requirements

By list, in the order of lists, then by number. The tree is rebuilt from parent and order.

FieldHolds
citeHW-3.
listThe list's code.
nThe number in the cite.
title, statement, bodyThe current text.
parentThe parent's number in the same list, or null for a top-level requirement.
orderIts place among the requirements with the same parent.
revisionThe number of the current revision.
created, updated, deletedAs above. updated moves on a move as well as on a change of text.
citesCites in statement and body.
revisionsEvery revision, oldest first. A revision is written each time the title, statement or body changes. Each has number, from 1; title, statement and body as they were; created, who saved it and when; and affects_meaning, the answer to Does this change affect what it requires?: true, false, or null when it wasn't asked.

Verifications

In sidebar order, then deleted verifications by id.

FieldHolds
idThe verification's id, such as VERIF-PWR.
nameIts name.
positionIts place in the sidebar.
created, updated, deletedAs above. updated moves on a rename, a delete, and a change to its place in the sidebar.
versionsEvery committed version by number, then the draft if there is one.

Each version:

FieldHolds
number1, 2, 3 …, or null for the draft.
state"committed" or "draft".
descriptionThe procedure.
made_by_runThe number of the run whose completion committed it, or null when it was saved as a version.
created, updatedFor a committed version, updated is when it was committed and by whom.
citesCites in description.

Mappings

Every mapping, open or closed, by requirement in the order of requirements, then by verification in the order of verifications, then by start. Mapping a pair again after closing it makes a new mapping.

FieldHolds
requirementThe requirement's cite.
verificationThe verification's id.
startWhen it was mapped.
endWhen it was closed, or null while it is open.
notesHow the verification is meant to cover the requirement.
created, updatedAs above.
citesCites in notes.
reviewsIts reviews, oldest first.

Each review is a judgement, made without running the test again, of what a run showed against the requirement's wording at the time:

FieldHolds
runThe number of the run it relies on, in the mapping's verification.
revisionThe number of the requirement's revision it judged.
outcome"pass", "fail" or "untested".
noteThe reason given.
createdWho made it and when.
citesCites in note.

Runs

By verification in the order of verifications, then by number.

FieldHolds
citeVERIF-PWR:RUN-3.
verificationThe verification's id.
nThe run's number.
state"in-progress" or "completed".
versionThe number of the version it follows, "draft" while it follows the draft, or null for a deleted run that was on the draft.
previous_versionFor a run that moved onto the draft, the number of the version it moved from. Otherwise null.
owns_drafttrue while the run is on a draft that its own page created and nobody has saved from the verification's page since.
occurred_atWhen the test was carried out.
completednull while in progress, otherwise at and by: who completed it and when.
recordWhat the run produced: measurements, builds, links to logs.
notesRun notes.
created, updated, deletedAs above. created.by opened the run.
citesCites in record.
rowsOne row for each requirement the run covers, by requirement in the order of requirements.

Each row:

FieldHolds
requirementThe requirement's cite.
mapping_startThe start of the mapping the row comes from. With the requirement and the run's verification it names one entry in mappings.
status"passed", "didn't cover", "failed", or null when not set yet.
status_set_atWhen the status was last set, or null.
revisionThe number of the requirement's revision that was current when the status was last set, or null.
notesWhat happened to this requirement in this run.
created, updatedAs above.
citesCites in notes.

Tags

By name ignoring case, then deleted tags in the order they were deleted.

FieldHolds
idThe tag's id, from its address (/app/w/…/tags/30k3m9xat).
nameIts name.
colour#rrggbb.
description"" when there is none.
requirements_scopeWhich requirements it can be applied to: "all", "chosen" (those in lists) or "none".
listsThe codes of the chosen lists.
applies_to_verificationsWhether verifications can carry it.
several_per_itemWhether one requirement or verification can carry several of its options.
created, updated, deletedAs above.
optionsEvery option, deleted ones included, by number. Each has n, its number; name; colour, or null to use the tag's; position; and created, updated and deleted.
appliedEvery time it was applied, oldest first, including those since removed.

Each entry in applied:

FieldHolds
requirement or verificationWhat carried it: a requirement's cite or a verification's id. Only one of the two is present.
optionThe option's number, or null for a tag without options.
appliedat and by.
removednull while it is still applied. Otherwise at, by, and because: "removed" (by hand, or replaced by another option of a one-per-item tag), "tag_deleted", "option_deleted", "no_longer_applies" (the tag stopped applying to that list or to verifications) or "item_deleted".

What is not in the file