Release Note Structure
A release note is a small tree of wiki pages, one for the note, one per change and one for the credits, each carrying its xobjects.
Explanation
Understanding this tree is what lets you query it from the getChanges macro or render it from a displayer of your own.
Page hierarchy
Every page of the application sits below the ReleaseNotes top-level space:
ReleaseNotes.WebHome the application home page
ReleaseNotes.Data.WebHome the data root
ReleaseNotes.Data.<Product>.<ShortVersion>.WebHome the release note
ReleaseNotes.Data.<Product>.<ShortVersion>.Entry001.WebHome a change
ReleaseNotes.Data.<Product>.<ShortVersion>.Contributors.WebHome the creditsThe short version is the page name and is parsed as the version, so the naming carries meaning rather than being cosmetic.
Two xobjects per entry
An entry page always carries two xobjects. EntryClass is the envelope: it says which product and version the entry belongs to and whether its type is Change or Contributors, and it is what every query matches on. The second object carries the payload, either Change.ChangeClass or ContributorsClass. An entry that is missing its EntryClass object is invisible to the whole application even though the page renders.
Manual QA validation
Release Notes Application 2.9+ ReleaseNoteClass also records whether manual QA validated the version: qaValidation is notTested (the default), validated or notValidated, and qaValidationDate is the day the testing ended. The ReleaseNotes.Code.QAValidationBadge UI extension displays them as a badge below the title of the release note, on the org.xwiki.platform.template.content.header.after extension point, once the administration turns it on.
Version aggregation
A release note derives the versions it queries from its own page name. 8.3M1 queries 8.3-milestone-1 and 8.3RC1 queries 8.3-rc-1, while a plain 8.3 queries 8.3 together with every milestone and release candidate of that version. This is why a final release note lists the changes of its milestones without them being copied.
FAQ
Why does an entry need two xobjects rather than one?
The envelope is shared by every kind of entry, so a query can find and locate entries without knowing which payload they carry.
How do I exclude a change that was superseded before the final release?
Pass its page reference to the exclusions parameter of the releasenotechanges macro on the final release note.